tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David M. Holmes" <david_m_hol...@yahoo.com>
Subject Re: Can i start/stop Tomcat from a remote computer ? ?
Date Mon, 24 Jul 2000 21:56:35 GMT
I believe you could have the runtime do what shutdown.bat does (java %TOMCAT_OPTS%
-Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat -stop %2 %3 %4 %5 %6 %7 %8
%9). I
have tomcat running as a service and use the MMC to start/stop/cycle the service remotely.

--- Alexandros Kotsiras <kotsiras@mediaondemand.com> wrote:
> 
>     I was wondering if this is possible in a Windows environment within the
> same Network.
>     Can i use something like RMI to start/stop Tomcat on a remote WinNT
> server from my WorkStation ? ?
>     For example JRun has a WEB based interface that enables to Start/Stop
> the default server by having an Admin Server running.
>      In my case i do not want to have a separate Tomcat Admin instance
> because i don't need to start/stop it via HTTP.
>      I would rather have a client Java Application to do that...
> 
>     I am currently playing with the Runtime class and i tried
> 
>     Runtime r = Runtime.getRuntime();
>     try{
>         r.exec("C:\\usr\\local\\tomcat-3.1\\bin\\startup.bat");
>     }
>     catch(IOException ex) {
>         ex.printStackTrace();
>     }
>   }
> 
> 
>   but it does not do anything  interesting ....
> 
>   Any ideas ? ?
> 
> 
> 
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail  Free email you can access from anywhere!
http://mail.yahoo.com/

Mime
View raw message