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

Spring Boot any way to define a JTA resource?

Is there a simple way to expose a resource as JNDI resource so that it satisfies the JTA data source reference in persistence.xml (already there, have to reuse it for some reasons)? If not in Spring Boot, can we do it using Java EE, like using an…
Paddy
  • 3,472
  • 5
  • 29
  • 48
1
vote
1 answer

WildFly LDAP Connection JNDI

We are in the process of moving from Glassfish to WildFly. In Glassfish we setup our LDAP server and use it for authentication and we also reference it with JNDI for us within the application for things such as searching users, etc. I am wondering…
ci_ms
  • 65
  • 1
  • 8
1
vote
0 answers

Weblogic returning null in JNDI lookup for mail Session

I have a Weblogic mail session configured on it with (got from weblogic config screen and JNDI tree): Name: default JNDI Name: mail/Session Binding Name: mail.Session Class: javax.mail.Session Hash Code: 2112656059 toString Results:…
Eduardo
  • 11
  • 3
1
vote
0 answers

Create URL using lookup by JNDI with {0} and {1} dynamic values

I thoroughly searched for an answer in here but I think my case is pretty isolated. I'm using IBM Rational® Application Developer 8.5 with WebSphere®. I configured my url from the Websphere Admin console->Resources->URL->URLs with these entries:…
Trailblazr
  • 11
  • 1
1
vote
0 answers

Where to find the default JNDI context from different application server?

I have seen a lot of places define the JNDI naming context like this (Websphere for…
Dreamer
  • 7,333
  • 24
  • 99
  • 179
1
vote
1 answer

javax.naming.NoInitialContextException 2

I have create an EJB program with 2 interfaces, 1 persistente class and 1 stateless class which implement the 2 interfaces (Remote interface and Local interface) After that I've create a Java Client with 1 class and I add jboss-client.jar to…
1
vote
1 answer

JNDI properties file in Worklight

Can anyone please explain the significance of JNDI properties file in worklight app developement, Also is it mandatory to have one JNDI properties file for the mobile app developed using worklight to work. thanks djrecker
Max
  • 5,380
  • 6
  • 42
  • 66
1
vote
1 answer

Worklight 6.1, SQL Adapter (Oracle 11g) JNDI error on Tomcat 7.0.42

We are deploying worklight application on Worklight 6.1, Oracle 11g, and Tomcat 7.0.42. we are following manual procedure to deploy worklight application on Tomcat we configured following files: Adapter.xml
1
vote
2 answers

How to acces to a global JNDI resource outside of Context container in Apache Tomcat 7.x?

I am developing a custom Valve for Apache Tomcat 7, the valve is defined at Host container level in the Apache Tomcat server.xml configuration file.
vzamanillo
  • 9,905
  • 1
  • 36
  • 56
1
vote
1 answer

java.lang.NoClassDefFoundError: com.ibm.ws.naming.util.CommonHelpers

I am trying to access a jms queue configured on Websphere Application Server 8. But I am getting java.lang.NoClassDefFoundError: com.ibm.ws.naming.util.CommonHelpers Exception. Can anyone suggest a solution? Does any jar file needs to be added? I…
Lizzie
  • 343
  • 2
  • 8
  • 20
1
vote
1 answer

Weblogic 12C - Unable to get a web.xml's JNDI entry

I'm trying to get a entry I defnined in the web.xml of a war inside a .ear deployed application in Weblogic 12c : java:app/test java.lang.String
electrotype
  • 8,342
  • 11
  • 59
  • 96
1
vote
0 answers

Servlet JNDI connection timing out

Our Java Servlet was developed on Eclipse Helios for Windows and runs on Tomcat 7. Recently a SQL Server database that it connects to using JNDI was migrated to a new server. I checked I could set up the connection to the new SQL server database…
AJF
  • 1,801
  • 4
  • 27
  • 54
1
vote
2 answers

In Spring/Tomcat, which configuration file do jndi lookups refer to?:

I'm having trouble getting a Spring/Tomcat app to resolve a variable which appears as a property of a JndiFactoryObjectName bean in the application context. Here's the relevant bean entry: When I try to run it on the server, it comes up with this…
Jack BeNimble
  • 35,733
  • 41
  • 130
  • 213
1
vote
1 answer

Having trouble getting Camel to use JDNI for database connection

I am having trouble getting Camel to work with jndi. I am deploying camel inside of IBM Websphere. Inside of Websphere there is a jdni connection called "vzw.ds.commerce" that is setup to connect to the database I want to access. This route below…
1
vote
0 answers

JNDI Lookup Issue with Weblogic

I'm getting "While trying to lookup 'jdbc.LogDB' didn't find subcontext 'jdbc'. Resolved ''" error when i try to get connection from the Weblogic. I created and tested the datasource and it's working. Also created the target servers. Datasource…
user3755508
  • 73
  • 1
  • 1
  • 4