3 Replies Latest reply on Mar 8, 2002 8:07 PM by JAYESH PARAYALI

    stateless sessionbean

    JAYESH PARAYALI Newbie

      Hi,

      I have deployed a stateless session bean. If I try to connect 2 clients, I see the second client waits till the first client terminates. Could someone please let me know how I can specify pooling of session bean in jboss.xml (I mean specify MinimumSize and MaximumSize).

      Thank you,
      Jayesh

        • 1. Re: stateless sessionbean
          JAYESH PARAYALI Newbie

          Hi,

          I place the below tags in my jboss.xml. I expect container to create 10 stateless session beans when the server starts up or when the first request was received to create this session bean. I see that only one bean is instantiated.

          Please help.

          Thanks,
          Jayesh

          <container-configuration configuration-class="org.jboss.ejb.deployment.StatelessSessionContainerConfiguration">
          <container-name>Defaugt Stateless SessionBean</container-name>
          <container-invoker>org.jboss.ejb.plugins.jrmp13.server.JRMPContainerInvoker</container-invoker>
          <instance-pool>org.jboss.ejb.plugins.StatelessSessionInstancePool</instance-pool>
          <instance-cache></instance-cache>
          <persistence-manager></persistence-manager>
          <transaction-manager>org.jboss.tm.TxManager</transaction-manager>
          <container-invoker-conf>
          False
          </container-invoker-conf>
          <container-pool-conf>
          100
          10
          </container-pool-conf>
          </container-configuration>

          • 2. Re: stateless sessionbean
            JAYESH PARAYALI Newbie

            Problem with MinimumSize has been fixed with the latest cvs source. However when I connected the first client, server created more than MaximumSize number of bean instances.

            In my client if I call a method of the bean 3 times, it created Maximumsize+3 instances.

            In my client if I call a method of the bean once, it created Maximumsize+1 instances.

            I expect the container to create at the most 100 (that is Maximumsize) instances.

            Thanks,
            Jayesh

            • 3. Re: stateless sessionbean
              JAYESH PARAYALI Newbie

              Ooops. It created 101 instances when I had Maximumsize 10 and MinimumSize 3