Stop java application gracefully
Today we are talking about how to stop java process gracefully. How can we shutdown your application? The first thing cames to my mind is to kill the application by next shell command kill -9 <application-pid>. It is possible to save PID app to somewhere, for instance into a file, and then read PID and execute the command. However in reality sometimes it’s an appropriate way.Imagine the situation — there is an application and this app has some work to…