Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can the JNDI naming tree be accessed from outside the container?

0
Posted

Can the JNDI naming tree be accessed from outside the container?

0

Yes. The JNDI tree can be accessed from outside of an OC4J instance by providing the InitialContext with information on where to look for JNDI services. This can be done by providing the properties as a parameter when the InitialContext is constructed. It can also be achieved by placing the required settings in a file called jndi.properties. The jndi.properties file should be placed in the classpath on the client For example, for a packaged Web application, the jndi.properties file would be placed in the WEB-INF/classes directory. The property settings require to access the JNDI tree from an external context are listged below. java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory java.naming.provider.url=ormi://localhost:port/ java.naming.security.principal= java.naming.security.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.