How about storing the reference of the stateful bean in the JNDI context?

e.g.

IntitialContext ctx = new InitialConext();
ctx.bind("yourSubCtxHere/" + obj.getSessionID(), obj);


BUT: Dont forget to remove this binding in the @Remove method of the stateful 
bean. Otherwise you will flood your JNDI context and maybe get invalid 
references...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910520#3910520

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910520


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to