Hi Eric. Would making your servlet reload all application vars not be akin to simply reloading your servlet altogether, by changing context/init params in your web.xml or context.xml?
If you really want to avoid an application reload, why not just have your app read its values from a properties config file instead of a DB? It would be much more lightweight and standard. Shay On Mon, Jun 28, 2010 at 11:37 PM, Eric P <eric.maill...@gmail.com> wrote: > I've been loading up my web.xml with context and init params for my first > app, but I'm thinking at some point it'd be nice to tweak these values on > the fly while the app is running. > > What are some good practices to accomplish this? > > I'm leaning towards storing all application variables in a database table > w/one record, and loading these values into the application scope w/a > servlet on app startup. Then if I need to tweak any values I could update > the db record and hit this servlet to reload all the application scope vars. > > I'm guessing there's some other possibly better ways to go about this. > > Thanks for reading, > Eric P. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >