[opencms-dev] Restarting OpenCms programmatically

Christian Steinert christian_steinert at web.de
Wed May 17 16:16:00 CEST 2006


> Hi List,
> 
> does anybody know if there's a way to restart OpenCms securely from a
> Object inside OpenCms or cause it somehow else to reinitialize it's
> complete configuration? There's a shutDown() method in OpenCmsCore but
> this class is not public and extreemly internal ;). Any hints would be
> greatly appreciated.
> 
> best regards
> Sebastian
> 
> 

Hi Sebastian,

there have been some hints on restarting tomcat.

But you can also cause tomcat to keep running and just restart your opencms web application.
This can be done through a simple HTTP request as described here: http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html

Personally, I use a small shell script, which uses wget in order to access the HTTP-based manager. Wget is also able to issue authentication-based requests and therefore this is possible even, if the tomcat manager has been password-protected (which is certainly advisable).

Regards 
Christian
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192




More information about the opencms-dev mailing list