tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravishankar S" <ravi.shan...@ionidea.com>
Subject Re: restarting tomcat programatically
Date Thu, 13 Jun 2002 07:16:57 GMT
u can execute DOS/shell scripts like this

Runtime rt = new Runtime();
Process p = rt.exec("<command>");
int status=p.exitValue();

status is 0 if command executes successfully....


but i don't know if it is really necessary to start the server from an
application......

ravi

----- Original Message -----
From: "Marek, Tomas" <MarekT@gedas.cz>
To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
Sent: Thursday, June 13, 2002 12:24 PM
Subject: RE: restarting tomcat programatically


> Try to call shell/DOS script (startup.bat/sh) from Java.
>
> tom
>
> -----Original Message-----
> From: Ankit [mailto:ankitc@ltp.soft.net]
> Sent: Thursday, June 13, 2002 8:36 AM
> To: tomcat-user@jakarta.apache.org
> 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:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message