3 Replies Latest reply on Mar 22, 2006 12:33 PM by tterm

    Stateless EJB not pooled at JBOSS startup

    abhayd

      Sir,

      I have made following configuration in JBOSS.xml

      <container-configuration>
      <instance-pool>org.jboss.ejb.plugins.StatelessSessionInstancePool</instance-pool>
      <instance-cache></instance-cache>
      <persistence-manager></persistence-manager>
      <container-pool-conf>
      100
      5
      </container-pool-conf>
      </container-configuration>

      I am still not able to see the print statements in ejbCreate() on console.
      It appears that JBOSS is not instantiating bean on server start up.

      Can some one guide me?

      Thanks,
      Abhay

        • 1. Re: Stateless EJB not pooled at JBOSS startup
          tterm

          Hello,

          there is no pooling during the startup. You can see your log statement after you do an create().

          Thomas

          • 2. Re: Stateless EJB not pooled at JBOSS startup
            abhayd

            Tomas,

            Thanks for your quick response. But I am not sure , why documentation talks about configuration in JBOSS.xml.
            Configuration is for instance pool & has MaximumSize/MinimumSize as child elements.

            Can you please comment?

            I am quite sure ejbCreate() will get called, when ejb client calls create()
            on Home object reference.

            Anyone else also most welcome to discussion thread


            Thanks,
            Abhay

            • 3. Re: Stateless EJB not pooled at JBOSS startup
              tterm

              Hello,

              Yes you are right but there is this sentence in the adminguide:

              "MinimumSize: The MinimumSize element gives the minimum number of instances to keep in the pool, although
              JBoss does not currently seed an InstancePool to the MinimumSize value."

              J guess you would expect that there is a pool with instances (minimumSize) after the deployment? But I don't know why this is not the case. Might be interesting.

              Thomas