-
1. Re: disabling Passivation of stateful Session Bean
falk Jul 4, 2002 8:11 AM (in response to xlrg)It is possible to set a max-bean-age (time after that ejbPassivate() will be done) and a max-bean-life (time after that ejbRemove() will be done) Parameter.
This can be done in jboss.xml, e.g.:
<container-cache-conf>
<cache-policy>org.jboss.ejb.plugins.LRUStatefulContextCachePolicy</cache-policy>
<cache-policy-conf>
<min-capacity>50</min-capacity>
<max-capacity>1000</max-capacity>
<remover-period>1800</remover-period>
<max-bean-life>1800</max-bean-life>
<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>
File standardjboss.xml in directory conf shows Standardkonfigurations for this, which you can use with jboss.xml.
Hope this may help you!
Falk