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.
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
Post by:autobot
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