How to Trap Tomcat's Terminate in Java Application

43 Views Asked by At

When I terminate my Java Application in Eclipse, it doesn't trigger the destroy() function but the application gets terminated.

Where and how can I capture Tomcat's shutdown (or Terminate button in Eclipse) in Java so that I could run the cleaning operations like closing threads etc.

0

There are 0 best solutions below