Hi,
I known that stateful
ejb bean will passivate when the idle time of
this bean exceed the Cache Idle Timeout time.
I deployed a stateful bean on glassfish,
and made following setting EJB Container setting:
Cache Settings
Removal Timeout: 5400 Seconds
Cache Idle Timeout: 10 Seconds.
I used client to access above stateful bean, the client invoked
bussiness method , then sleep 20 Seconds(exceed 10s) and then calls another business method
I expected the method marked '@PrePassivate' would be invoked.
But the passivate method did not be invoked.
what is the reason for that??
Thanks,
Suresh B