5 Replies Latest reply on Nov 14, 2002 2:47 PM by pikee

    Stateless Session Bean Timeout

    pikee



      How do I set the transaction timeout for a Stateless Session Bean


      This is my jboss.xml settings

      <?xml version="1.0"?>

      <enterprise-beans>

      <ejb-name>Mc Pikee</ejb-name>
      <jndi-name>x.y.z</jndi-name>
      <configuration-name>Mc Pikee Bean Configuration<configuration-name>

      </enterprise-beans>

      <container-configurations>
      <container-configuration>

      <container-name>Mc Pikee Bean Configuration</container-name>
      <call-logging>false</call-logging>
      <instance-pool>org.jboss.ejb.plugins.StatelessSessionInstancePool</instance-pool>

      <container-pool-conf>
      100
      </container-pool-conf>

      </container-configuration>
      </container-configurations>




      I looked at the examples in the standardjboss.xml and the Stateless Session Beans had no configurations regarding timeouts

      Any ideas ????

      I have also looked at the jboss-service.xml and found this, any correlation to time-outs for Stateless EJBS


      300
      <depends optional-attribute-name="XidFactory">jboss:service=XidFactory

        • 1. Re: Stateless Session Bean Timeout
          minamoto

          >I looked at the examples in the standardjboss.xml and the Stateless Session Beans had no configurations regarding timeouts

          Instances of stateless session beans are managed in a pool of the container.
          When you call a method to a stateless session bean, one comes from the pool and after the method returns the instance goes back to the pool.

          With this pool, the server can handle more beans than actual number of instances.
          It can be done because they are 'stateless'.

          Thus you have no way to keep the same instance on the server side while your application uses it.
          This is my understanding why we cannot set the timeout to them.

          Miki

          • 2. Re: Stateless Session Bean Timeout
            pikee

            I understand what you are saying but if the Bean does not return and is waiting on some call to complete, I would like to force the timeout myself and allow the Bean to be recycled in the pool.

            • 3. Re: Stateless Session Bean Timeout
              pikee

              I understant your point of view but what if

              "the method does not return" I would like the Bean to time out after some time

              pikee

              • 4. Re: Stateless Session Bean Timeout
                pikee

                fdfdfdf

                • 5. Re: Stateless Session Bean Timeout
                  pikee

                  > When you call a method to a stateless session bean,
                  > one comes from the pool and after the method returns
                  > the instance goes back to the pool.

                  If my method does not return I would like the Bean to timeout after some time