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.