I am trying to configure a JNDI search in a web application that will be deployed to Tomcat 7. I have specified the following properties in the jndi.properties file:
java.naming.factory.initial = org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs = org.jboss.naming: org.jnp.interfaces, java.naming.provider.url = local: 1199
But when I get the initial context and check its attributes, it discovers that java.naming.factory.initial changes to org.apache.naming.java.JavaURLContextFactory and all other properties remain the same as in the jndi.properties file. I donβt understand why this one property gets changes? How can I prevent this and force tomcat to use the property that I specified?
user1556622
source share