force servlet read re-read init parameters
Hi all, Is there some way 'in code' to force a servlet to re-read it's init parameters. Right now I have to restart my HTTP-container each time these init parameters change Thanks a lot, Harm de Laat Informatiefabriek The Netherlands. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: force servlet read re-read init parameters
Helo Harm, 1. Most containers support hot deployment where your app automatically reload when one of its properties or classes is altered, ie web.xml other a propreties file in class path 2. You can add a method in servlet and callit from browser to call init -D - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 4:43 AM Subject: force servlet read re-read init parameters Hi all, Is there some way 'in code' to force a servlet to re-read it's init parameters. Right now I have to restart my HTTP-container each time these init parameters change Thanks a lot, Harm de Laat Informatiefabriek The Netherlands. - 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]
Re: force servlet read re-read init parameters
On Wed, 20 Aug 2003 [EMAIL PROTECTED] wrote: Date: Wed, 20 Aug 2003 13:43:12 +0200 From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: force servlet read re-read init parameters Hi all, Is there some way 'in code' to force a servlet to re-read it's init parameters. No. Right now I have to restart my HTTP-container each time these init parameters change Most containers offer a way to deal with this. For example, Tomcat has the manager webapp that can dynamically load, unload, and reload webapps without restarting the server. Thanks a lot, Harm de Laat Informatiefabriek The Netherlands. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: force servlet read re-read init parameters
Harm, Add code to your doGet() method that looks for a particular request parameter and if found, then re-read the init parameters by possibly calling your init() method again. ex. in your doGet() method have some code like: if (request.getParameter(reinit) != null) { init(); return; } -Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 4:43 AM To: [EMAIL PROTECTED] Subject: force servlet read re-read init parameters Hi all, Is there some way 'in code' to force a servlet to re-read it's init parameters. Right now I have to restart my HTTP-container each time these init parameters change Thanks a lot, Harm de Laat Informatiefabriek The Netherlands. - 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]