title: Order of calling destroy() method on servlets/filters
body: <p>I have a Java web app.</p>
  
  <p>I can specify the order of calling <code>init()</code> method on servlets by the parameter in <code>web.xml</code>:</p>
  
  <pre><code>&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  </code></pre>
  
  <p>But, how can I specify the order of calling <code>destroy()</code> methods?</p>
  
  <p>Actually, what I need to do is just shutdown log4j in the end.  But in advance I want to know if there is some rules for calling <code>destroy()</code> method.</p>