struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Reloading ActionServlet configuration
Date Mon, 16 Dec 2002 20:20:22 GMT


On Mon, 16 Dec 2002, Ron Monson wrote:

> Date: Mon, 16 Dec 2002 14:38:52 -0500
> From: Ron Monson <ronmonson@hotmail.com>
> Reply-To: Struts Developers List <struts-dev@jakarta.apache.org>
> To: struts-dev@jakarta.apache.org
> Subject: Reloading ActionServlet configuration
>
> Since the reload() method has been removed from ActionServlet effective
> 1.1b2 I am trying to find an alternative way of 'reloading' the
> configuration on-the-fly.  Simply calling init() again or destroy() and then
> init() does not seem to work.  Also, the destroy() method doesn't seem to be
> completed yet.
>
> Does anyone have any suggestions??
>

Calling init() and destroy() yourself on a servlet violates the servlet
spec rules, and will definitely cause undefined behavior.

Use the application reload facilities of your servlet container.  Tomcat,
for example, offers the manager webapp's "reload" command.

> Thanks,
>
> Ron

Craig


--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message