lotus notes - LS2J: get session from LS agent into java class -


i have java class should transfer data current database server. access current database, seems java needs working session object:

public class edgeserverconnection {     public edgeserverconnection(session session) {         try {             // how session here?             database db = session.getcurrentdatabase();             ...         } catch(exception e) {         }     } } 

the class should called lotusscript agent, somehow this:

set session = new notessession set jsession = new javasession set connectionclass = jsession.getclass("edgeserverconnection") set connectionobject = connectionclass.createobject("(l/lotus/notes/session;v)", session) 

but throws error

ls2j: java constructor failed execute

if remove session parameter both constructor , createobject call, error goes away.

how can agent session java class?

you can't work domino objects in java class called ls2j nor can pass domino objects parameter.

do work notes domino classes in lotusscript , use java classes tasks need accomplish java only.

as alternative, can create java agent all work. can call java agent lotusscript then.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -