I have a bunch of common application-wide static data objects in my web application. I want to load them at startup so I don't waste time getting them from the data store each time I need them. The only way I know how to do this is with filters. In the filter check to see if the objects are loaded, if not load them as
servlet context attributes.
I keep thinking there must be a way to put a class in the application context on startup so that the filter does not have to check on each request.
Any ideas?