EugeneP
EugeneP

Reputation: 12003

How to make use of jndi in a stand-alone (non-managed) application?

How to make use of jndi in a stand-alone (non-managed) application? App and Tomcat6 are on the same machine.

Can we get something through jndi lookup when the server is running, but when the app is not running under this tomcat server?

Upvotes: 3

Views: 1486

Answers (2)

JoseK
JoseK

Reputation: 31371

If I understand your question correctly, you want to use the Tomcat JNDI outside of the Tomcat web app. I think Tomcat does not expose the JNDI externally. See this link:

http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q22

Upvotes: 1

Riduidel
Riduidel

Reputation: 22292

Performing a lookup is only a matter of creating an InitialContext with the valid parameters. Considering you have a Tomcat running on your machine, you should be able to find the required context parameters in server.xml.

Upvotes: 0

Related Questions