Hi,
I'm trying to use a simple Java client to make calls to an EJB which is made available via a WebLogic server.
I've got the whole thing setup so it's working fine - except when I try to test the passivation and activation functionalities.
I've setup the WebLogic deployment descriptor for the container running the bean so the caching configurations are as follows:
<max-beans-in-cache>4</max-beans-in-cache>
<idle_timeout-seconds>5</idle_timeout-seconds>
<cache-type>LRU</cache-type>
I've hard-coded the output so I can see when ejbPassivate() and ejbActivate() are called etc. Passivation has started to work since my Java client runs five threads and it seems to call five beans in succession (each thread has a five second interval between each invocation):
<ejbPassivate() called>
<ejbPassivate() called>
<ejbPassivate() called>
<ejbPassivate() called>
<ejbPassivate() called>
However, say when I run the Java client straight after it has finished in an attempt to try and get the beans which have passivated to try and activate, it just outputs:
<ejbPassivate() called>
<ejbPassivate() called>
<ejbPassivate() called>
<ejbPassivate() called>
<ejbPassivate() called>
In conclusion, I cannot seem to ever get the caching facility to call ejbActivate()??!!
Please help as I'm really out of things to try!
Many thanks,
James
I'm trying to use a simple Java client to make calls to an EJB which is made available via a WebLogic server.
I've got the whole thing setup so it's working fine - except when I try to test the passivation and activation functionalities.
I've setup the WebLogic deployment descriptor for the container running the bean so the caching configurations are as follows:
<max-beans-in-cache>4</max-beans-in-cache>
<idle_timeout-seconds>5</idle_timeout-seconds>
<cache-type>LRU</cache-type>
I've hard-coded the output so I can see when ejbPassivate() and ejbActivate() are called etc. Passivation has started to work since my Java client runs five threads and it seems to call five beans in succession (each thread has a five second interval between each invocation):
<ejbPassivate() called>
<ejbPassivate() called>
<ejbPassivate() called>
<ejbPassivate() called>
<ejbPassivate() called>
However, say when I run the Java client straight after it has finished in an attempt to try and get the beans which have passivated to try and activate, it just outputs:
<ejbPassivate() called>
<ejbPassivate() called>
<ejbPassivate() called>
<ejbPassivate() called>
<ejbPassivate() called>
In conclusion, I cannot seem to ever get the caching facility to call ejbActivate()??!!
Please help as I'm really out of things to try!
Many thanks,
James