0 Replies Latest reply on Aug 23, 2002 5:49 AM by Cokorda Raka Angga Jananuraga

    Is It Bean Life Cycle Issue on JBoss ???

    Cokorda Raka Angga Jananuraga Newbie

      Hi,

      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,
      Raka