title: JNDI configuration in Tomcat
body: <p>I am trying to set up JNDI lookup in web application to be deployed in Tomcat 7. I have specified following properties in <code>jndi.properties</code> file:</p>
  
  <blockquote>
    <p>java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
        java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces,
        java.naming.provider.url=localhost:1199</p>
  </blockquote>
  
  <p>But when i get initial context and inspecting its attributes it reveals that <code>java.naming.factory.initial</code> changes to <code>org.apache.naming.java.JavaURLContextFactory</code> and all other properties remains same as in the <code>jndi.properties</code> file.I dont understand why this single property gets changes ? How can i prevent this and force tomcat to use property i have specified ?</p>