Re: "Application" vars -

2010-07-03 Thread Hassan Schroeder
On Sat, Jul 3, 2010 at 7:08 PM, Christopher Schultz wrote: > Heck, you can > even use a single class that is a servlet but also implements > ServletContextListener, and have everything in one class. Setting up a case study for a "Real-life Refactoring" course? :-) -- Hassan Schroeder

Re: "Application" vars -

2010-07-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, On 6/28/2010 11:37 PM, Eric P 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 g

Re: "Application" vars -

2010-07-02 Thread Shay Rojansky
Just my comments on the dispatching idea proposed below... If smooth processing with no freeze-time is important, I'm assuming there is also some sort of cluster/high-availability functionality. If this is the case, you are already running at least two Tomcats on different servers, and using some

Re: "Application" vars -

2010-07-02 Thread André Warnier
Eric P wrote: So it makes sense to go into what "disruption" means. I'm not 100% sure about the following, it would be good if a tomcat heavyweight would confirm/refute what I say. When you initiate a webapp reload, Tomcat waits for requests that have already started processing to terminate. Thi

Re: "Application" vars -

2010-07-01 Thread Eric P
So it makes sense to go into what "disruption" means. I'm not 100% sure about the following, it would be good if a tomcat heavyweight would confirm/refute what I say. When you initiate a webapp reload, Tomcat waits for requests that have already started processing to terminate. This ensures that

Re: "Application" vars -

2010-06-30 Thread Shay Rojansky
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? >> >> > Do you mean "reloading your 'applicati

Re: "Application" vars -

2010-06-30 Thread Eric P
Shay, Forgive all potential newbness in my responses below. I'm still learning this stuff. Shay Rojansky wrote: 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.x

Re: "Application" vars -

2010-06-29 Thread Shay Rojansky
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

"Application" vars -

2010-06-28 Thread Eric P
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 datab