[JBoss-user] [EJB/JBoss] - Re: Is this a bug? stateful session bean is acting like stat

2005-01-21 Thread efcorpa
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

[JBoss-user] [EJB/JBoss] - Re: Is this a bug? stateful session bean is acting like stat

2004-07-22 Thread siupetpet
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

[JBoss-user] [EJB/JBoss] - Re: Is this a bug? stateful session bean is acting like stat

2004-07-21 Thread jamesstrachan
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

[JBoss-user] [EJB/JBoss] - Re: Is this a bug? stateful session bean is acting like stat

2004-07-19 Thread GPS
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