Reusing java session

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

Subject: Reusing java session

Yes, each session has to be on a unique thread.

Subject: Reusing java session

Perhaps not relevant to your immediate situation, but Runnables can use the caller’s session, etc.