Re: API call to reload Tomcat web application

2008-03-17 Thread jamieb
Hi Thanks for the tip. While I am very grateful for your advice, I am not sure I like either of the approaches. I was hoping just to call a Tomcat API function directly from my web application. Is'nt there a method called restart() or something? JMX seems like overkill since I do not need to

Re: API call to reload Tomcat web application

2008-03-17 Thread Pid
jamieb wrote: Hi Thanks for the tip. While I am very grateful for your advice, I am not sure I like either of the approaches. I was hoping just to call a Tomcat API function directly from my web application. Tomcat provides an API, in the form of JMX. Is'nt there a method called restart()

Re: API call to reload Tomcat web application

2008-03-17 Thread jamieb
Hi There I had a look at Tomcat's Manager application the reload(..) function reveals a hint: .. Context context = (Context) host.findChild(path); .. context.reload(); This should do the trick? Any idea on how to get the tomcat context object... from ActionServlet or ModuleConfig

Re: API call to reload Tomcat web application

2008-03-17 Thread jamieb
Sorry I didn't mean to say ActionServlet or ModuleConfig objects...these are struts based objects.. more generally, from within a Tomcat web application... how do you access the Context object? Thanks Jamie jamieb wrote: Hi There I had a look at Tomcat's Manager application the

Re: API call to reload Tomcat web application

2008-03-16 Thread Pid
jamieb wrote: Hi there I am busy implementing an auto update facility for a Tomcat web application. As part of the auto update process, the auto update code needs to unpack the changed class files and reload the Tomcat web application. I am aware that you can configure Tomcat to

Re: API call to reload Tomcat web application

2008-03-15 Thread Martin Gainty
Jamie- yes there is a way if you register SimpletonAgent in the registry as a Managed Bean http://java.sun.com/developer/technicalArticles/J2SE/jmx.html perhaps if you have a simple test webapp we could suggest a test harness? Martin- - Original Message - From: jamieb [EMAIL PROTECTED]