title: java web-application initialization and shutdown
body: <p>I'm trying to implements initialization and shutdown of a webapp. That includes initialization and shutdown of:</p>
  
  <ul>
  <li>Hibernate (v3.6);</li>
  <li>C3P0 (v0.9.1.2);</li>
  <li>EHCache (v2.3.0);</li>
  <li>Quartz (1.8.4);</li>
  <li>Other tasks specific to my webapp;</li>
  </ul>
  
  <p>Using Tomcat 5.5.30 and Java 6. My idea is to avoid resource leaking, mostly because of the redeploy of the webapp in the development environment.</p>
  
  <p>How should I implement this?</p>