3 Replies Latest reply on Feb 20, 2014 7:51 AM by Wolf-Dieter Fink

    Pre-Populating SLSB EJB Pool

    Ravi G Newbie

      Hi All,

       

      Is there a way to specify pre-population of SLSB EJB Pool so that the pool is ready with the EJB instances when there is a rush of EJB calls?

      Here, I would want to avoid Instance creation at the time of EJB call.

       

      My beans are stateless remote beans (not Singleton Startup):

      @Stateless

      @Remote(MyEJBInterface.class)

       

      My pool settings are:

      <subsystem xmlns="urn:jboss:domain:ejb3:1.2">

          <session-bean>

              <stateless>

                  <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>

              </stateless>

              <stateful default-access-timeout="5000" cache-ref="simple"/>

              <singleton default-access-timeout="5000"/>

          </session-bean>

          <pools>

              <bean-instance-pools>

                  <strict-max-pool name="slsb-strict-max-pool" max-pool-size="1000" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                  <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

              </bean-instance-pools>

          </pools>

          ...

      </subsystem>

       

      Thanks in advance.

       

       

      Ravi