Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When we make some changes to .properties file in tomcat, the server should be restarted.

The question is why the server needs to be restarted ?

What should I do if I want to make on-the-fly changes ( i.e. without restarting tomcat server ) to tomcat server's properties, assume logging.properties file ?

share|improve this question

1 Answer 1

Most applications only read configuration files once as it would be a performance overhead to continually re-check if they've been updated. Also, some configuration items may too complex to implement dynamically.

If you're using log4j then it's possible to update log levels and appenders using JMX. If you have control over the source of the J2EE application then you could use Apache Commons Configuration which supports reloading of configuration files.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.