d***@gmail.com
2005-07-12 16:16:12 UTC
Hi,
I am new to weblogic (currently using ver 8.1).
My requirement is to not to allow my stateful beans to passivate at all
and after some time-period of INACTIVITY(say a timeout) just remove
them from memory.
To achive this I used (though couldnt finalize yet) the following
interesting combination -
<weblogic-enterprise-bean>
<ejb-name>BeanName</ejb-name>
<stateful-session-descriptor>
<stateful-session-cache>
<max-beans-in-cache>TO_A_HIGH_VALUE</max-beans-in-cache>(set=100)
<idle-timeout-seconds>3600</idle-timeout-seconds>(1 hr)
<cache-type>NRU</cache-type>
</stateful-session-cache>
</stateful-session-descriptor>
<jndi-name>BeanJNDIname</jndi-name>
</weblogic-enterprise-bean>
The NRU documentation says so
(http://e-docs.bea.com/wls/docs81/ejb/DDreference-ejb-jar.html#1114380),
hence the above combination.
However, now the beans timeout after 3600 secs immaterial of whether
they were accessed just one secs before.. I would require them to
timeout with 3600 secs of inactivity and not after 3600 secs.
Any suggestions / other combinations etc would be of great help.
I am new to weblogic (currently using ver 8.1).
My requirement is to not to allow my stateful beans to passivate at all
and after some time-period of INACTIVITY(say a timeout) just remove
them from memory.
To achive this I used (though couldnt finalize yet) the following
interesting combination -
<weblogic-enterprise-bean>
<ejb-name>BeanName</ejb-name>
<stateful-session-descriptor>
<stateful-session-cache>
<max-beans-in-cache>TO_A_HIGH_VALUE</max-beans-in-cache>(set=100)
<idle-timeout-seconds>3600</idle-timeout-seconds>(1 hr)
<cache-type>NRU</cache-type>
</stateful-session-cache>
</stateful-session-descriptor>
<jndi-name>BeanJNDIname</jndi-name>
</weblogic-enterprise-bean>
The NRU documentation says so
(http://e-docs.bea.com/wls/docs81/ejb/DDreference-ejb-jar.html#1114380),
hence the above combination.
However, now the beans timeout after 3600 secs immaterial of whether
they were accessed just one secs before.. I would require them to
timeout with 3600 secs of inactivity and not after 3600 secs.
Any suggestions / other combinations etc would be of great help.