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" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 8: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]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>