How do i get event notification in my application when jboss gets shutdown signal ? (Something like what we have in java Running.addshutdownhooks) Can i control jboss shutdown from my application ?
In my application i have threads which accsess database. When jboss gets shutdown signal (kill) It undeploys all applications and ejbs. Now i want to delay jboss shutdown so that i can complete current operation and shutdown gracefully.
Whats the ideal method of handling jboss shutdown in application ?