> From: chuanjiang lo [mailto:[EMAIL PROTECTED] > Subject: Re: Webapp with Adminstrative Console > > Is there any articles i can look at to implement the servlet watch for > changes to the .ini file?
You can set a <WatchedResource> tag inside the <Context> element for your webapp; changing the target of that should trigger a reload of the app. Look here for doc: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Nested%20Com ponents > I don't think i am able to redeploy the app, since the > adminstrator console changing the .ini file of the > application that is currently running on tomcat.. Should be able to do it by sending a delayed refresh of the console page back to the client, and also forwarding a request to the html-manager app to do the redeploy. A bit of a kludge, but it can probably be made to work. Shouldn't be needed with <WatchedResource>. But better just to process the updated .ini file without redeploying the app, if possible. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]