RE: servlet communication

2002-11-20 Thread Varley, Roger
> > Could you just rely on the manager application to reload the webapp? > Then there is no code to maintain. > I've been looking for an effective way to emulate the unix 'kill -HUP' command for ages. It's not always practical to kill off the webapp, since you need to ensure that no-one is usin

Re: servlet communication

2002-11-20 Thread Tim Funk
If your using apache - a good admin will be able to sufficently protect the manager webapp. The ServletContext is always available. From servlets: ServletContext myContext= this.getServletConfig().getServletContext(); From JSP: Provided via the "application" scripting variable. Felipe Schnack

Re: servlet communication

2002-11-20 Thread Felipe Schnack
yes.. synch is really a pain! but what you mean you mean set ServletContext.setAttribute()? This isn't only visible in all instances of a specific servlet? My problem with manager is that a sysadmin here don't like the idea of have such an adminastive tool open to the web... i don't agree wi

Re: servlet communication

2002-11-20 Thread Tim Funk
Could you just rely on the manager application to reload the webapp? Then there is no code to maintain. Otherwise - your in a kludge. You can: - Put a "status" object in your application context - When a servlet is executed - it can first check its "status" instance locally stored against the ap