1 Reply Latest reply on May 2, 2002 10:17 PM by albert kam

    InstanceCache in JBoss-2.4.4 ?

    albert kam Newbie

      Hi all,
      Does anybody know how to specify the maximum InstanceCache for my enterprise beans in jboss.xml for JBoss-2.4.4 ? In jboss v 2.2.x, i can do it with these lines included in jboss.xml inside tag :
      <container-configurations>
      <container-configuration>
      <container-name>LRU Configuration</container-name>
      <instance-cache>org.jboss.ejb.plugins.EntitySessionInstanceCache</instance-cache>
      <container-cache-conf>
      <cache-policy>org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy</cache-policy>
      <cache-policy-conf>
      <min-capacity>2</min-capacity>
      <max-capacity>2</max-capacity>
      <overager-period>300</overager-period>
      <max-bean-age>600</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-configuration>
      </container-configurations>

      But those lines above wont work in JBoss-2.4.4 while i'm deploying my ejb-jar file, with the NullPointerException(i think that the conf-tag's been changed).

      Also, does anybody know where to get the complete configuration or user manual for JBoss-2.4.4 ? I'm having a nightmare finding the docs

      And, after reading the docs bundled with JBoss-2.4.4, i know there's an XML editor for jboss.xml located in /bin/ named ejx.jar, but i've found none.

      Thanks before !