title: How to run code at exiting point of web request in java
body: <p>I have a web application written in java. i would like to run a 'clean up' method that would run at the end of each web request as in after all the work has been done. I'm looking for something like a filter just that it would run at the end of the request and not at the beginning.</p>
  
  <p>What's the way to do this?</p>
  
  <p>Any help would be appreciated </p>