Ryan, > Where would this code go that gets and sets the value, so that it > would only run once collectively for all users (not once per user)?
It's right here: >> The usual way of doing this is to create a ServletContextListener >> which implements the init() method, grabs the values from the >> <init-param> parameters, and stuffs them into the "application" >> scope. > More specifically, would this be executed during a restart of Tomcat? > If so, how (by what class/method)? You are creating a ServletContextListener, which must be configured in the "listeners" section of your web.xml file: simply mention the ServletContextListener in there, and the contextInitialized() method will be called when the webapp is initialized (i.e. once for the life of the webapp). If you restart Tomcat, your webapp will be initialized again during startup and your code will execute again. -chris
signature.asc
Description: OpenPGP digital signature