tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alu, artifex" <>
Subject Re: How can i restart/reload a webapplication from within a servlet ?
Date Thu, 01 Jul 2004 12:25:05 GMT

the tomcat distribution includes a manager webapplication which provides 
the functionality of
starting, stopping and reloading specific web applications, take a look 
at the source code of
this app to figure out how to achive such a behaviour. you may face some 
problems when
the webapp tries to reload itself, imho this isnt possible. but you 
could deploy the reloading servlet
into another webapp, that should do the job.


Hussayn Dabbous wrote:

> Hi;
> I have created an "installation Servlet", which
> gathers some information from the administrator upon
> first startup after installation of my webapp.
> Everything is running fine, but at the end the
> Servlet should restart/reload the webapplication
> in which it is running.
> I haven't found any hint how i could get this done.
> Of course i could simply set autoreload='true', but
> this is no good idea for production and has several
> other drawbacks in my environment.
> if there is a "standard" solution available, that would
> be great. If there is a solution, which only works for
> tomcat, that would be ok, if i could figure out from
> the servlet, that i am running on a tomcat appserver...
> any ideas ?
> regards, Hussayn
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message