Hi ewernli,
thanks for answering. I will check
[code]
javax.naming.Reference
javax.naming.spi.ObjectFactory
[/code]
I'd like to bind a concrete session instance to the context to be able to cancel the query if necessary. This allows me to cancel a long running query from the client side. Therefore the session is bind to the context via an ID the client knows.
[code]
Context ctx = new InitialContext();
Session session = (Session)ctx.lookup("path"+ID);
session.cancelQuery();
[/code]
Clearly this works only with the concrete session via reference. A deserialized session from the context doesn't know the running query, canceling is not possible.
Cheers Tino
[Message sent by forum member 'ezekiel12' (ezekiel12)]
http://forums.java.net/jive/thread.jspa?messageID=262839