aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes InstanceCache in JBoss-2.4.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "InstanceCache in JBoss-2.4.4" Watch "InstanceCache in JBoss-2.4.4" New topic
Author

InstanceCache in JBoss-2.4.4

jhun kam
Greenhorn

Joined: Dec 05, 2001
Posts: 18
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 <jboss> 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 :roll:
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 !
[ May 02, 2002: Message edited by: jhun kam ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: InstanceCache in JBoss-2.4.4