Breaking News
Home / Tag Archives: Threads

Tag Archives: Threads

A typical ShutdownHook in Java

Java Shutdown Hook

Shutdown hooks are a very important feature of the JVM. They provide the capability to do resource cleanup or store application state when the JVM shuts down. In a typical application there are lot of different type of resources like Database Connection Pool, Thread Pools, Job Schedulers etc. that are …

Read More »

Understanding Java Shutdown Hook

Java Shutdown Hook

The JVM provides the capability to add Shutdown hooks at Runtime. This shutdown hooks can be used to perform any resource cleanup or save state as required just before the JVM shuts down either normally or abruptly. There can be more than one shutdown hooks that can be registered any …

Read More »
Advertisment ad adsense adlogger