[jboss-user] [EJB 3.0] - Strange stateful session bean problem (creating new SFSB bet
lmierzej
do-not-reply at jboss.com
Tue Oct 17 07:40:56 EDT 2006
Hi,
in my JSF backing bean I access SFSB:
| userSession = (UserSession) ctx.lookup("bgsw/UserSessionBean/local");
|
In SFSB constructor give it an test identifier:
| id = System.currentTimeMillis();
|
>From login.jsf I access my SFSB (id 1161084087468), then by hand (writing in browser) I change page to addBoardGame.jsf and access my SFSB (but it's different SFSB - id 1161084121117).
Every time I perform jndi lookup I get different SFSB?
| userSession = (UserSession) ctx.lookup("bgsw/UserSessionBean/local");
|
How can I lookup the same SFSB? Is this possible?
Thank you for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978761#3978761
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978761
More information about the jboss-user
mailing list