6 Replies Latest reply on Oct 22, 2007 8:11 AM by Arun K

    Hooking to JBoss Shutdown

    Arun K Newbie

      Hi all,

      I want to add a JBoss shutdown hook, so that when the JBoss shutdown is activated I want to do some pre steps, which is implemented as a method in a SessionBean.

      But the problem is that the session bean gets unbound before the method and hence the lookup and creation bean itself fails.

      Currently I am using a Runtime hook to do this.

      Any ideas would be of great help....

      Can we use any JMX mechanisms to achieve this?