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

    Decrease Stateless session EJB instances

    Aitor Elorza Newbie

      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


        • 1. Re: Decrease Stateless session EJB instances
          Aitor Elorza Newbie

          Any one could help with this matter?

          My jboss.xml inlcudes the following:

          <container-configuration extends="Standard Stateless SessionBean">
          <container-name>Pool Limited Stateless SessionBean</container-name>
          <!-- Override the container pool configuration -->

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