This content has been marked as final.
Show 1 reply
-
1. Re: How to add custom code to JBoss shutdown hook
francis17101970 Oct 15, 2008 8:41 AM (in response to bugsbunnyca)As far as I know you can add a shutdown hook to the JVM, so if you don't find other solutions you might consider starting jBoss from a Java process...
Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { System.out.println("Going to shutdown....."); while(true); } };
Hope it helps
regards