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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to