Top "Jndi" questions

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.

Unit Testing Dilemma: Using a JNDI data source without running JBoss or Spring

Problem Statement I want to be able to run junit tests on methods that connect to a database. Current setup …

java eclipse unit-testing junit jndi
ClassCastException when casting looked-up EJB view in AS7

I have am deploying 2 EARs onto JBoss AS 7.1.0.Alpha1-SNAPSHOT (post 7.0.1.Final version). Both deploy fine. I have an EJB …

java ejb jndi classcastexception jboss7.x
How to configure a String value in Websphere 7 JNDI?

In fact I found such message before: Configuring and looking up a simple String via JNDI in WebSphere I want …

websphere jndi websphere-7
jetty-env.xml with DataSource leads to failing WebAppContext on mvn jetty:run

I have a really simple webapp project with maven and jetty that has been working very well until now. But …

mysql jetty jndi maven-jetty-plugin
How to find the JNDI look-up name of EJB programmatically?

I am using EJB 3.1 in my application. I want to send one EJB's JNDI look-up name in my application to …

jakarta-ee jboss7.x jndi ejb-3.1
Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory, using jmeter-maven-plugin

In few words, if I run the JMeter plan test below from Maven it gives the outcome: javax.naming.NamingException: …

maven jmeter activemq jndi jmeter-maven-plugin
How to configure JDBCRealm to obtain its DataSource from JNDI

How do you use a JDBCRealm to handle authenticating and authorizing users in servlets? The only example I can find …

jndi shiro jdbcrealm
Why doesn't DirContext.close() return the LDAP connection to the pool?

I noticed while using an LDAP connect pool that calling close() on the context did not appear to return it …

java ldap jndi connection-pooling
Spring Boot Using Embedded Tomcat with JNDI

I am using Spring Boot with Embedded Tomcat and attempting to use JNDI but getting the following error: javax.naming.…

spring-boot jndi embedded-tomcat-8
JBoss: Binding values into JNDI in JBoss EAP 6 similar to JNDIBindingServiceMgr

How do I bind an arbitrary string to JNDI in JBoss EAP 6? I used to do it through org.jboss.…

java jboss jboss7.x jndi jboss-eap-6