Hi,
I want to increase the size and max age for the cache of a particular (BMP) entity bean. I have tried to do this using the following xml snippet in
$JBOSS_HOME/server/default/conf/jboss.xml, but it didn't seem to do anything.
Can anyone tell me what I need to do to work with
the cache of a particular bean - not the standard
cache for all beans.
thanks,
Colin Daly
<enterprise-beans>
<ejb-name>LineItemEJB</ejb-name>
<configuration-name>Larger Pool Configuration</configuration-name>
</enterprise-beans>
<container-configurations>
<container-configuration>
<container-name>Larger Pool
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>500</min-capacity>
<max-capacity>10000</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>
The jboss.xml should go in the META-INF of
myApp.jar alongside the ejb-jar.xml
Regards,
Adrian