I have several classes that use java Session (lotus.domino.Session).
In all of this classes, i need to do this code :
…
NotesThread.sinitThread();
Session session = NotesFactory.createSession();
// My code …
NotesThread.stermThread();
…
I would like to use a unique session object that is shared between all of my classes.
I try to implements this in a class, but it seems that the session object must be used in the same thread of the object’s creation thread…
How can i do to use a unique session Object ?
Thanks by advance