0 Replies Latest reply on Aug 24, 2002 8:34 AM by Cokorda Raka Angga Jananuraga

    setEntityContext(...) get called every time...

    Cokorda Raka Angga Jananuraga Newbie


      I observed something related to bean instance pooling:

      Why everytime I call someEntityHome.create(..), an instance of SomeEntityBean is created? I see it from the log; I put a System.out.println() statement inside setEntityContext(...). If I invoke someEntityHome.create(...) N times, I see the printout N times too.

      I thought that the EJB container will pickup an instance from the pool (whenever possible)?

      How to control that in JBoss? I've tried setting the (under <container-pool-conf>) to minimum value: 1. But I'm still getting the behavior explained above.

      BTW: I'm using jboss-3.0.0_tomcat-4.0.3.

      Thanks in advance,