Forums Register Login

Timeout will call @PreDestroy?

+Pie Number of slices to send: Send
When a Stateful bean annotated with @StatefulTimeout times out,

will/should it call the @PreDestroy method?

I'm using glassfish, when my bean times out, it does not call my @PreDestroy method, is this a vendor specific behavior?
+Pie Number of slices to send: Send
Hi,
@PreDestroy is not called when bean
1) Times out while passivated (Stateful beans)
2) Throws system exception that results in discarding the bean instance.

regards,
Amit
+Pie Number of slices to send: Send
Thanks Amit!
In seems that in glassfish when @StatefulTimeout times out, it passivates the bean before the instance is removed, that's why i was not getting any @PreDestroy callback
We're all out of roofs. But we still have tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1359 times.
Similar Threads
@Predestroy and timeout
Confusion in call back methods
@PreDestroy annotation
When all @PreDestroy gets called?
EJB 3.0 statefull session bean life cycle dout
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 20:33:18.