title: Is there a way to pass the file location by jndi in a <util:properties /> tag?
body: <p>I have the following properties declared in my spring-config.xml </p>
  
  <pre><code>&lt;util:properties id="ldap" location="classpath:com/company/project/resources/some_configuration.properties"/&gt;
  </code></pre>
  
  <p>Then I inject the values contained in the properties into some member variables using the spring <code>@Value</code> annotation in a service implementation (this approach is by far the cleanest/most elegant I have used in the implementation of the service and if possible I wouldn't want to change it). </p>
  
  <p>The problem with this layout is that I have to modify the properties file and regenerate the application war for every deployment environment (quality, production, etc) and the server admins want to configure the <code>some_configuration.properties</code> path by JNDI (the application server is JBoss) </p>
  
  <p>How can I pass the file location by jndi in the <code>&lt;util:properties /&gt;</code> tag?</p>
  
  <p>Any help and suggestions would be appreciated  </p>
  
  <p><strong>edit:</strong>
  It would be nice if somebody comes out with a solution where I could do something like:</p>
  
  <p><code>&lt;util:properties id="ldap" location="jndi:url/some_configuration.properties"/&gt;</code></p>
  
  <p>Or similar</p>