Using EJB stateful Bean passivation time settings in JBoss

Source: Internet
Author: User
Tags min jboss

The EJB stateful bean passivation time setting is used in JBoss:

modifying Standardjboss.xml files

<container-configuration>


<container-name>standard Stateful sessionbean</container-name>


<call-logging>false</call-logging>


<invoker-proxy-binding-name>stateful-rmi-invoker</invoker-proxy-binding-name>


<container-interceptors>


<interceptor>


Org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor


</interceptor>


<interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>


<!--CMT-->


<interceptor transaction= "Container" >


Org.jboss.ejb.plugins.TxInterceptorCMT


</interceptor>


<interceptor transaction= "Container" >


Org.jboss.ejb.plugins.CallValidationInterceptor


</interceptor>


<interceptor transaction= "Container" >


Org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor


</interceptor>


<!--BMT-->


<interceptor transaction= "Bean" >


Org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor


</interceptor>


<interceptor transaction= "Bean" >


Org.jboss.ejb.plugins.TxInterceptorBMT


</interceptor>


<interceptor transaction= "Bean" >


Org.jboss.ejb.plugins.CallValidationInterceptor


</interceptor>


<interceptor>


Org.jboss.resource.connectionmanager.CachedConnectionInterceptor


</interceptor>


<interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor>


</container-interceptors>


<instance-cache>


Org.jboss.ejb.plugins.StatefulSessionInstanceCache


</instance-cache>


<persistence-manager>


Org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager


</persistence-manager>


<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> ' default time is 600 seconds, modified for the
you need

<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-pool-conf>


<MaximumSize>100</MaximumSize>


</container-pool-conf>


</container-configuration>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.