Howdy, If your own webapp is running on the tomcat instance you're trying to restart, then HUH? ;) One VM can always restart another, as others have proposed. So you can have a command line program, shell scripts, another webapp running on another tomcat instance, etc.
Alternatively, look at how JBoss manages its embedded tomcat ;) You'll have to do a bit more work, and need to know some JMX MBeans stuff. (I'm no longer bitter about 4.0.2 removing the System.exit() to accommodate JBoss -- long live my System.exit() context listener! ;)) Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Ankit [mailto:[EMAIL PROTECTED]] >Sent: Thursday, June 13, 2002 2:36 AM >To: [EMAIL PROTECTED] >Subject: restarting tomcat programatically > >hi, >i am trying to restart tomcat from my web application. Is there anyway i >can do it programmatically? >Does Tomcat provide any class to allow restart(I know about >org.apache.tomcat.startup.Tomcat, i have tried this, It does not work b,coz >once VM dies it does not call start)? >Thanx in advance > >Ankit Chansoriya >Software Engineer >Lisle Technology Partners >45/3 Gopalkrishna Complex, >Residency Cross Road, >Bangalore-25 >ph:5595636 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
