[jboss-user] [EJB 3.0 Users] - Re: EJB 3.0 lookup from Pojo and Injection
PeterJ
do-not-reply at jboss.com
Thu Dec 3 11:17:43 EST 2009
anonymous wrote : JNDI lookup for a STATELESS session bean i the same transaction will return the SAME instance as a previous call ??
No. Stateless beans are kept in a pool; each time you ask for one via JNDI you could get a different instance. If you need a single bean, then look it up once and pass it to the methods that need to interact with it.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268831#4268831
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268831
More information about the jboss-user
mailing list