[jboss-user] [EJB 3.0] - Re: Setting timeout for EJB3 session beans

ngtdave do-not-reply at jboss.com
Mon Aug 7 14:48:27 EDT 2006


You can change the timeout in
$JBOSS_HOME\server\default\conf\standardjboss.xml

Look for 
anonymous wrote : <container-configuration>
  |       <container-name>Standard Stateful SessionBean</container-name>
  | ...
  |       <container-cache-conf>        <cache-policy>org.jboss.ejb.plugins.LRUStatefulContextCachePolicy</cache-policy>
  |         <cache-policy-conf>
  |           <min-capacity>50</min-capacity>
  |           <max-capacity>1000000</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>

Set the max-bean-age.

Hope this helps.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963652#3963652

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963652



More information about the jboss-user mailing list