title: How to access a running servlet filter?
body: <p>I will be creating a <code>ServletFilter</code> that will alter the way HTTP Requests are processed.</p>
  
  <p>The <code>ServletFilter</code> will make those decisions based on the state of the data in the database.</p>
  
  <p>I would rather not have a database hit happen every time the <code>ServletFilter</code> is invoked.</p>
  
  <p>The webapp already has <code>quartz</code> implemented, so hitting the database at a predetermined time is not a problem.</p>
  
  <p>My question is, <em>how can I contact the <code>ServeltFilter</code> at these timed intervals to give it a new set of saved information until the next timed interval?</em></p>
  
  <hr>
  
  <p><strong>Update:</strong>
  There is useful discussion in this SOF post about getting a ServletContext into a Quartz job.
  <a href="https://stackoverflow.com/questions/3215988/how-to-get-and-set-a-global-object-in-java-servlet-context">How to get and set a global object in Java servlet context</a></p>