Is there any way to get notified of JVM shutting down or System.exit call before the actual shutdown? I want this, so my application will be able to make a clean exit. I rea
There's Runtime.getRuntime().addShutdownHook() method that you might want to explore.
Runtime.getRuntime().addShutdownHook()