I will be creating a ServletFilter that will alter the way HTTP Requests are processed.
The ServletFilter will make those decisions based on the state of the data in the database.
I would rather not have a database hit happen every time the ServletFilter is invoked.
The webapp already has quartz implemented, so hitting the database at a predetermined time is not a problem.
My question is, how can I contact the ServeltFilter at these timed intervals to give it a new set of saved information until the next timed interval?
Update:
There is useful discussion in this SOF post about getting a ServletContext into a Quartz job.
How to get and set a global object in Java servlet context
Instead of trying to find the Filter to tell it,
have the Filter look the information up by querying a service somewhere (e.g. stored in the
ServletContext), or just have the service store the information in theServletContext.