1 Reply Latest reply on Nov 15, 2005 12:41 PM by rolo05

    Decrease Stateless session EJB instances

    rolo05

      Hi all,

      Due to a peak of concurrent invocations, the server starts many instances of my EJB's. At this point, everything id OK, but when invocations goe to a normal state, the server does not decrease this number of instances, and in my case, this is a problem becasue each EJB makes a connection with an external system so I'm occupying a lot of connections innecessarily. Does anybody know how to force the server to do this?

      With this type of EJB (Stateless session), I have only the possibility to set a Minimum, a Maximum, the strict, of the pool but not a period of time or whatever to destroy the unused instances (Once they are not used)

      Than you

      Rolo

        • 1. Re: Decrease Stateless session EJB instances
          rolo05

          Any one could help with this matter?

          My jboss.xml inlcudes the following:

          <container-configurations>
          <container-configuration extends="Standard Stateless SessionBean">
          <container-name>Pool Limited Stateless SessionBean</container-name>
          <!-- Override the container pool configuration -->
          <container-pool-conf>
          1
          2
          true
          0
          </container-pool-conf>
          </container-configuration>
          </container-configurations>

          but nothing about how to force the destroy of the instance when is no longer used.

          Thanks

          Aitor