title: Java - Tomcat: Reload context.xml without restarting server
body: <p>I'm using spring mvc and tomcat as a server. I want to be able to change a jndi field that is Autowired(as String): </p>
  
  <pre><code>&lt;jee:jndi-lookup id="someMessage" jndi-name="someMessage"/&gt;
  </code></pre>
  
  <p>in one of the my services, that is referenced to conf/context.xml of Tomcat, that looks something like this: </p>
  
  <pre><code>&lt;Environment name="someMessage" value="Change this." type="java.lang.String" /&gt;. 
  </code></pre>
  
  <p>However, when I change the value on context.xml, this change is not reflected on my service managed by spring, unless I restart server. Is there anyway to reflect this change without restarting or redeploying war? I know there is a solution to include such a dynamic field in one of properties file and then use commons configuration library to reload the changes, but I'm looking for a solution to keep this field on my conf/context.xml... </p>