3 Replies Latest reply on Nov 1, 2003 2:48 AM by mtechsrinivas

    Help! how to specify pool size

    mtechsrinivas Newbie

      hi
      i am using jboss3.2.
      I couldnt know how and where to specify the pool size for statefull beans.
      Can any one help me.

        • 1. Re: Help! how to specify pool size
          Jon Barnett Master

          Check the run-time standardjboss.xml definitions - e.g. JBOSS_HOME/server/defaultconf/standardjboss.xml. This is a global modification.

          <container-pool-conf>

          20
          100

          </container-pool-conf>


          You will need to apply the changes to the relevant container definition - probably Standard Stateful SessionBean but it depends on your JBoss run-time, such as using a clustered solution.

          You can make the changes on a individual deployment level by copying the container definition into your jboss.xml packaged with your EJB deployment. Look at the jboss.xml DTD for 3.2 to determine how the descriptor needs to be created/structured.

          You can also append a boolean strictMaximumSize tag.
          <container-pool-conf>
          20
          100
          true
          </container-pool-conf>

          There is quite a bit to learn about this and tuning/throttling using your deployment descriptor is often best left until after you have realised your specification/design. MHO. It also prevents more unnecessary complications while you are still learning the basics of JBoss.

          • 2. Re: Help! how to specify pool size
            Jon Barnett Master

            Note that your DTD definitions can be foudn in JBOSS_HOME/docs/dtd.