Pasivaci napr statefull ejb si muzete nastavit v standardjboss.xml, ktery se nachazi v adresari conf daneho jboss profilu (napr default). Zde si musite najit prislusny typ konteineru napr mnou zminovany statefull session ejb :

<container-configuration>
<container-name>Standard Stateful SessionBean</container-name>
<call-logging>false</call-logging>
<invoker-proxy-binding-name>stateful-unified-invoker</invoker-proxy-binding-name>
<container-interceptors>
<interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
<interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
<interceptor>org.jboss.ejb.plugins.security.PreSecurityInterceptor</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>
<interceptor>org.jboss.ejb.plugins.StatefulSessionSecurityInterceptor</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>
<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>

Zde jsou pro vas dulezite dve hodnoty a to
<max-bean-age>600</max-bean-age> (doba necinnosti v sec, po ktere dojde k pasivaci na disk, je mozna opetovna aktivace) a <max-bean-life>1800</max-bean-life> (doba v sec po ktere dojde v pripade necinnosti k trvalemu odstraneni beanu, a tudiz jiz neni mozna aktivace).

Zde si muzete dobu pasivace a odstraneni zkratit tak, aby se vam to dobre ladilo. Mozna by nebylo od veci dany problem trosku blize specifikovat, pak by i odpoved mohla byt konkretnejsi.

Jaroslav Hurdes

Dne 23.6.2010 14:37, Nalezenec, Lukas napsal(a):

Dobry den,

Mam nejaky problem s pasivaci aplikace na JBossu. Chtel bych se zeptat, jestli nevite o zpusobu, jak pasivaci/aktivaci nejak rychle vyvolat kvuli reprodukci problemu.

Diky

Lukas

*Lukas Nalezenec*
Software Engineer

If you want to hire great people and have them stay,

you have to let ideas win, not hierarchy

Steve Jobs

_______________________________________

*Acision. **Innovation. Assured.**
**www.acision.com* <http://www.acision.com/>**

Na Okraji 335/42, 162 00 Praha 6
Czech Republic
E:  lukas.naleze...@acision.com


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

Odpovedet emailem