1 2 Previous Next 23 Replies Latest reply on Oct 30, 2003 5:40 PM by danielchai

    Passivation problem in JBoss3.2.2RC4

    danielchai

      I am new in Jboss and EJB. Now I meet problem and hope someone can help me.

      The version of JBoss I use is JBoss3.2.2RC4,and I want to test the passivation and activation of stateful session bean.

      First, I want to limit the size of instance pool to 2, so I copy the conf/standardjboss.xml to deploy/jboss-service.xml and make the following changes:

      <container-configuration>
      <container-name>Standard Stateful SessionBean</container-name>
      .......
      <container-cache-conf>
      <cache-policy>org.jboss.ejb.plugins.LRUStatefulContextCachePolicy</cache-policy>
      <cache-policy-conf>
      <min-capacity>1</min-capacity>
      <max-capacity>2</max-capacity>
      <remover-period>400</remover-period>
      <max-bean-life>400</max-bean-life>
      <overager-period>300</overager-period>
      <max-bean-age>300</max-bean-age>
      <resizer-period>400</resizer-period>
      <max-cache-miss-period>60</max-cache-miss-period>
      <min-cache-miss-period>1</min-cache-miss-period>
      <cache-load-factor>0.75</cache-load-factor>
      </cache-policy-conf>
      </container-cache-conf>
      <container-pool-conf>
      2
      </container-pool-conf>
      </container-configuration>

      Then, I write a stateful session bean. In the client code, I create 3 beans, but in the console window I can not see the ejbpassivate() is called?

      Can anybody tell me what is the problem?

      Thanks first!

        1 2 Previous Next