Questions tagged [jndi]

The Java Naming and Directory Interface (JNDI) is a Java API for a directory service that allows Java software clients to discover and look up data and objects via a name.

The Java Naming and Directory Interface (JNDI) is a Java API for a directory service that allows Java software clients to discover and look up data and objects via a name. Like all Java APIs that interface with host systems, JNDI is independent of the underlying implementation. Additionally, it specifies a service provider interface (SPI) that allows directory service implementations to be plugged into the framework. It may make use of a server, a flat file, or a database; the choice is up to the vendor.

For additional info check:

3073 questions
1
vote
1 answer

JNDI TOMCAT7 AMAZON EC2

I've been trying to set up my tomcat server on amazon's ec2 server with little luck. I have the same exact setup running fine on my windows local machine with no issues. Caused by: javax.naming.NameNotFoundException: Name [jdbc/orders] is not…
Marios
  • 130
  • 1
  • 13
1
vote
1 answer

Avoid clear text passwords in JNDI datasource in Tomcat

I am using a JNDI datasource that is configured in tomcat server. I want to avoid storing the password as clear text and also i have an existing encryption logic available in the application used which i want to use to encrypt the database…
Sushant
  • 173
  • 1
  • 4
  • 15
1
vote
1 answer

ActiveMQ 5.10 client in Tomcat 7 with InitialDirContext

I'm working with an existing web application (running in Tomcat 7.0.26) that normally communicates with external systems over IBM WebsphereMQ, via the JMS API. The code looks similar to: Hashtable env = new…
Maarten Boekhold
  • 867
  • 11
  • 21
1
vote
1 answer

NullPointerException in Junit testing after using jndi-simple api for getting datasource

I am trying to create and run a unit testing against my Servlet which accesses a DataSource after going through some online tutorial at http://fandry.blogspot.com/2011/03/junit-based-integration-testing-with.html Note: I had a similar post in the…
Nital
  • 5,784
  • 26
  • 103
  • 195
1
vote
1 answer

How can I make a war pointing different database in context.xml

We have tomcat instance running in the development server and pointing towards the development database. We have a context.xml which has the connection pointing to the database. Unfortunately, we dont have the staging servers available. So we might…
Uppi
  • 702
  • 2
  • 13
  • 37
1
vote
1 answer

How to close JNDI connection?

I am using JNDI for database connection. I have created a XML file in META-INF for connection.