Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Restarting tomcat from web page

Rodrigo Ruiz

2003-12-04

Replies:

The only way to restart a Windows service is through native code. You
could use JNDI, or Runtime.exec() to run a "net stop & net start"
script, or a perl script, or a vbs one... there are many options here :-)

Apart from protecting the page, I would also implement a first step with
a countdown, so you can abort the restart operation if you want :-P

Regards,
Rodrigo Ruiz

Tim Funk wrote:

> I have heard of this done by using a second webserver with perl
> installed and then using Perl Win32 calls from webserver A to
> webserver B to restart the server.
>
> You could always run the other webserver on a high protected port so
> you don't need a second box.
>
> -Tim
>
> Altug B. Altintas wrote:
>
>> Hi
>> How can i restart Tomcat which is running as service, from a web page
>> 1 - calling bat file ? (not working)
>> 2 - calling http://localhost:8080/manager/html/start?path=/engine
>> (asking
>> password)
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.