tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: restarting tomcat programatically
Date Thu, 13 Jun 2002 13:26:46 GMT
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 []
>Sent: Thursday, June 13, 2002 2:36 AM
>Subject: restarting tomcat programatically
>i am trying to restart tomcat from my web application. Is there anyway
>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
>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,

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message