[jboss-user] [EJB 3.0] - Re: trouble getting correct SFSB-instance in WAR-deployment
ALRubinger
do-not-reply at jboss.com
Fri Nov 9 10:06:40 EST 2007
Are you looking up the SFSB from JNDI with every HTTP request?
A new lookup will return a new instance; if you're doing this, best to perform the JNDI lookup once (maybe in a filter in an if(session.isNew()) block) and then place the stub as an attribute into the HttpSession. Subsequent requests to the HttpSession can reference the stub there, and you'll get back the same SFSB instance.
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103279#4103279
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103279
More information about the jboss-user
mailing list