Hi James,
I've never worked with Stateful EJBs and I've got a doubt:
you said "if you really want to use a Stateful Session Bean, you should create
it only once from the client and then ..."
but...
what happens if client is a servlet?: you cannot store EJB as a Servlet's
attribute since Serv
Thank you so much James, I think you are totally right.
I did some further testing by doing System.out.println(this); in the bean class, so
that I can see the bean's memory location on the jboss console.
For a slsb, the memory location has been always the same across multiple create()
calls even
This requires a longer explanation.
For stateless session beans, JBoss uses a pool of beans and supplies the client with
any instance. In a idle system (normal developer mode), JBoss will create a pool with
one instance and give you that instance on each call.
Your client does a create() and t
No, not a bug. Correct behavior.
It's most likely you misunderstand what SFSBs and SLSBs are.
Thanks.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842647#3842647
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842647