-
1. Re: is redeployment necessary if u edit any properties file
peterj Jul 11, 2008 12:10 PM (in response to sriram_jboss)If these are your properties files, then your code should be responsible for rescanning them. You could do this by creating a service to manage the properties files. The logging service already does something like this - it rescans the jboss-log4j.xml file every few seconds; you can use that as a template for your service.
There is also the system properties service provided by the properties-service.xml file. But that doesn't have a timer to rescan the properties files. -
2. Re: is redeployment necessary if u edit any properties file
sriram_jboss Jul 15, 2008 1:55 AM (in response to sriram_jboss)Peter, can u just give an brief idea how the template look like....i have gone through jboss-log4j.xml and didnt gey an idea where to do the changes
-
3. Re: is redeployment necessary if u edit any properties file
peterj Jul 15, 2008 1:48 PM (in response to sriram_jboss)Look at the file server/src/main/org/jboss/logging/Log4jService.java in the source distribution, the setup() method. It uses a URLWatchTimerTask to be notified if the log config file changes.