Hey,
I just committed the passivating caches, check out again jBoss and by
default the stateful beans (using jdk 1.3) will passivate (when the
container and the cache decide so). You can suggest the container to keep a
very little cache for the beans you want to be passivated very often; put
these lines in your jboss.xml
<container-configuration>
<container-name>My Stateful Configuration</container-name>
<call-logging>false</call-logging>
<container-invoker>org.jboss.ejb.plugins.jrmp13.server.JRMPContainerInvoker<
/container-invoker>
<instance-cache>org.jboss.ejb.plugins.StatefulSessionInstanceCache</instance
-cache>
<persistence-manager>org.jboss.ejb.plugins.StatefulSessionFilePersistenceMan
ager</persistence-manager>
<transaction-manager>org.jboss.tm.TxManager</transaction-manager>
<container-invoker-conf>
<Optimized>False</Optimized>
</container-invoker-conf>
<container-cache-conf>
<CachePolicy>org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy</CachePol
icy>
<MinimumCapacity>3</MinimumCapacity>
<MaximumCapacity>5</MaximumCapacity>
</container-cache-conf>
</container-configuration>
and remember to link your bean to the new configuration (My Stateful
Configuration).
HTH,
Simon
-----Original Message-----
From: Marco Pappalardo [mailto:[EMAIL PROTECTED]]
Sent: gioved� 12 ottobre 2000 17:43
To: [EMAIL PROTECTED]
Subject: [jBoss-Dev] Set Beans Passivation
I want JBoss Container passivates all the Session Beans I created every time
it can. I know I can use container configuration tags to enable and disable
this function.
My problem is that I need a new class or something else to substitute
org.jboss.ejb.plugins.NoPassivationStatefulSessionInstanceCache in the
<instance-cache> tags line!
I tried both using
<instance-cache></instance-cache>
and deleting the whole line from the section, but JBoss didn't deploy.
I know the classes to use within these tags must implement InstanceCache
interface but directory <jboss-path>\src\org\jboss\ejb\plugins does't
contain nothing implementing InstanceCache interface and different from
NoPassivationStatefulSessionInstanceCache.java
NoPassivationEntityInstanceCache.java
What Do I have to fill up instance-cache tag with?
Help me.
Marco.
<container-configuration>
<container-name>Standard Stateful SessionBean</container-name>
<call-logging>false</call-logging>
<container-invoker>org.jboss.ejb.plugins.jrmp13.server.JRMPContainerInvoker<
/container-invoker>
<instance-cache>org.jboss.ejb.plugins.NoPassivationStatefulSessionInstanceCa
che</instance-cache>
<persistence-manager>org.jboss.ejb.plugins.StatefulSessionFilePersistenceMan
ager</persistence-manager>
<transaction-manager>org.jboss.tm.TxManager</transaction-manager>
<container-invoker-conf>
<Optimized>False</Optimized>
</container-invoker-conf>
</container-configuration>