Re: Updating files without restarting Tomcat
Subject: Re: Updating files without restarting Tomcat From: Dan Paraschiv [EMAIL PROTECTED] === In my opinion you have a different problem here. Probably you read those properties files at some point in your application lifecycle. Suppose that point is your servlet init method (which is called only once in the servlet life). If you change the properties files it's your responsibility that you re-read those file and propagate the changes. You need to find a way to tell your application that something in it's environment changed and it has to reinitialize itself. Best regards, Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Updating files without restarting Tomcat
In my opinion you have a different problem here. Probably you read those properties files at some point in your application lifecycle. Suppose that point is your servlet init method (which is called only once in the servlet life). If you change the properties files it's your responsibility that you re-read those file and propagate the changes. You need to find a way to tell your application that something in it's environment changed and it has to reinitialize itself. Best regards, Dan The properties files are reread by entering a particular URL - which is the behaviour I want. Unfortunatly it reads the old version of the properties file not the updated version. It will only read the updated version if I restart Tomcat. Thanks for your reply. Catharine -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Updating files without restarting Tomcat
Title: RE: Updating files without restarting Tomcat You can specify the attribute reloadable=true in the context element for your web-application (in server.xml) This will, however, watch all files for changes. There is no way to my knowledge of watching only some files. cheers Rory -Original Message- From: cbarnes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 11:31 AM To: Tomcat Users List Subject: Updating files without restarting Tomcat I am using Tomcat 4. I have a number of properties files in the WEB-INF/classes directory. I need to be able to change the values of the properties in these files, but it looks as though I need to restart Tomcat every time I change a value in order for it to recognise the new version of the file. Is there any configuration I can change so that it is not necessary to restart Tomcat when I change the values of the properties. Is it possible for this to apply just to specified files - I don't want it to check the status of all the files in WEB-INF/classes because I know the class files won't change. Thanks, Catharine -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Updating files without restarting Tomcat
I've actually had problems with the reloadable attribute. I think it may be broken. You may try the HTMLManager application, which allows you to monitor, start, stop and reload your various webapps. You'll need to modify the conf/tomcat-users.xml and webapps/manager/WEB-INF/web.xml; instructions are in the comments, and here's the link to the HOW-TO: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html - Alfred Douglas, Rory wrote: You can specify the attribute reloadable=true in the context element for your web-application (in server.xml) This will, however, watch all files for changes. There is no way to my knowledge of watching only some files. cheers Rory -Original Message- From: cbarnes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 11:31 AM To: Tomcat Users List Subject: Updating files without restarting Tomcat I am using Tomcat 4. I have a number of properties files in the WEB-INF/classes directory. I need to be able to change the values of the properties in these files, but it looks as though I need to restart Tomcat every time I change a value in order for it to recognise the new version of the file. Is there any configuration I can change so that it is not necessary to restart Tomcat when I change the values of the properties. Is it possible for this to apply just to specified files - I don't want it to check the status of all the files in WEB-INF/classes because I know the class files won't change. Thanks, Catharine -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- A. Alfred Ayache, | 20 years' experience President, The Last Byte, Inc. | Testimonials Custom software par excellence | Links http://www.lastbyte-inc.com| Free Software -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Updating files without restarting Tomcat
Hi, In order for tomcat to reload your files, you have to add reloadable=true to your application context in server.xml. However, this will cause tomcat to restart each time one of yout classes has been changed or one of the jars in WEB-INF/lib. Not only, it'll effect performance, but creating a new class loader isn't so obvious, and might cause problems (If you use jni, for example). good luck, Tamir -Original Message- From: cbarnes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:16 PM To: Tomcat Users List Subject: Updating files without restarting Tomcat I am using Tomcat 4. I have a .properties file in my WEB-INF/classes part of my work tree, which is read in using a ResourceBundle. My problem is that if I update this properties file it does not recognise the new version until I have restarted Tomcat. Is there a config value I can change so that I don't have to restart Tomcat each time I change the properties file? If there is can it apply to only certain files or sections of the application? I don't want Tomcat to check if .class files have changed everytime it uses them as this isn't necessary and will obviously effect performance. Thanks, Catharine -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]