[jboss-user] [EJB 3.0] - No pooling for stateless session beans with JBoss 4.0.4 GA a

jcoffee do-not-reply at jboss.com
Fri Jul 14 06:09:04 EDT 2006


Hi,

we have an EJB 2.1 system and try to integrate an EJB 3 business component (EJB 3 SLSB as facade and EJB 3 POJO's for persistence).

Eeach method call to the EJB 3 SLSB creates a new bean instance. We have a 'printout' with the object identity in the PostConstruct callback method. We call the method 1000 times and each call creates it's own instance. EJB 2 SLSB are pooled correctly - so only one bean was created for the 1000 calls.

The creation/lookup of the EJB 3 SLSB is made by lookup the EJB 2 view of the EJB 3 bean, means: we use a LocalHome interface for EJB 3 too (for compatibility purposes only).

Any suggestions?

Regards
Guido

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958023#3958023

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958023



More information about the jboss-user mailing list