Yes, the ServletContext is the most appropriate place to put it if you want your data to be available during the life time of the application.
If your container conforms to Servlet spec. 2.3 or higher, a
solution is to implement one or more ServletContextListener(s). Is the a best practice? I think that may be subjective, but it does
not bind you to any third party solutions.
The container must invoke these upon application start up before it processes any requests.
For more information refer to the Servlet 2.3 spec or higher. http://java.sun.com/aboutJava/communityprocess/first/jsr053/index.html
robert
Thanks, Robert. I looked at the spec (which is very well written and easy to follow, btw), and a ServletContextListener seems perfect for my purposes, and was designed for exactly my use case.
cheers,
n.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

