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.

How do I connect to a Websphere Datasource with a given JNDI name?

I'm using Websphere Portal 7.0 and creating a portlet with RAD 8.0. My portlet is trying to make a db2 connection to …

java db2 websphere jndi ibm-rational
What does "javax.naming.NoInitialContextException" mean?

As the title suggests, what does "javax.naming.NoInitialContextException" mean in non technical terms? And what are some general suggestions …

java jdbc jndi
How to lookup JNDI resources on WebLogic?

I deployed a legacy application on WebLogic 11g. The application has the following code: Context context = new InitialContext(); dataSource = (javax.…

weblogic jndi weblogic11g
Where is class weblogic.jndi.WLInitialContextFactory?

when trying to execute my jar file I get an exception: javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory […

jar weblogic jndi
javax.naming.CommunicationException: simple bind failed

When trying to connect to the LDAP server using a simple LDAP application I am getting an error which says "…

java ldap jndi
Should you set up database connection properties in server.xml or context.xml

I am trying to set up the database connection properties using JNDI for a Spring web application. I am considering …

java spring datasource jndi
What to put into jta-data-source of persistence.xml?

What value should I place into <jta-data-source> of my persistence.xml? In glassfish admin panel I created a …

java jpa ejb jndi openejb
what is java:comp/env?

what is meant by java:comp/env ? What does the look up like : Context envContext = (Context)initContext.lookup("java:comp/…

java jakarta-ee jndi
Connection cannot be cast to oracle.jdbc.OracleConnection

Why java.sql.Connection cannot be cast to oracle.jdbc.OracleConnection in code below? My main goal is to pass …

java oracle hibernate jdbc jndi
What is the purpose of JNDI

How can you realize the usage of JNDI , with an example if possible?

java jndi