[jboss-user] [EJB 3.0] - Re: Sizing a Stateless Session Bean Pool Size

amedina do-not-reply at jboss.com
Mon Dec 18 08:20:21 EST 2006


You can also set that in the standardjboss.xml file. Just scroll down, till you find that:

  | <container-configurations>
  |   <container-configuration>
  |   <container-name>Standard Stateful SessionBean</container-name>
  |  ...
  |  <overager-period>300</overager-period> 
  |   <max-bean-age>600</max-bean-age> 
  | ...
  | 

max-bean-age is the time in seconds, a stateful bean has to be idle before it gets passivated.
the overager-period is the time period, the beans get checked for passivation.

Alternatively, you can copy the whole container configuration to a jboss.xml file which has to be located in the META-INF-Directory of your Bean .jar.

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

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



More information about the jboss-user mailing list