hi, i am trying to do the same (limiting the maximum number of instances) for a stateful session bean (i am following the examples given in the book "Mastering Enterprise Java Beans, 2nd edition).
what i found out is that u have to write a custom jboss.xml to override the cache settings given in the standard configuration. here is mine: 1 <?xml version="1.0"?> 2 3 <enterprise-beans> 4 5 <ejb-name>Hans</ejb-name> 6 2Beans 7 8 </enterprise-beans> 9 <container-configurations> 10 <container-configuration extends="Standard Stateful SessionBean"> 11 <container-name>2Beans</container-name> 12 <container-cache-conf> 13 <cache-policy-conf> 14 <min-capacity>1</min-capacity> 15 <max-capacity>2</max-capacity> 16 </cache-policy-conf> 17 </container-cache-conf> 18 </container-configuration> 19 </container-configurations> 20 this should be sufficient; by using the extends-attribute all settings which are not overridden should be taken over from the configuration named "Standard Stateful SessionBean" (which can be found in the standardjboss.xml file). however, the settings don't seem to take effect; debugging statements should be issued in the ejbPassivate and ejbActivate methods of the bean, but they are not. no error messages are issued. does anyone know what i did wrong, or how this issue can be solved? thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845908#3845908 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845908 ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user