users@glassfish.java.net

EJB lifecycle, how to catch EJB unload event

From: <glassfish_at_javadesktop.org>
Date: Mon, 26 Nov 2007 01:39:13 PST

Hi together,
I have a thread that was started by a statefule session bean. Whenever I stop the application (in glassfish: disable) or undeploy the application (due to an upgrade of it) I want to interrupt/finish and delete the thread object.

How can I catch the glassfish ejb unload event (if there's any) ?
Can I reliably use ejbRemove to kill the thread ?
Thanks
[Message sent by forum member 'swordofdarius' (swordofdarius)]

http://forums.java.net/jive/thread.jspa?messageID=247121