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
0 answers

How can I update my weblogic JMS queue's target and subdeployment to default and AdminServer?

I have a problem identical to this question: JNDI lookup failing when looking up JMS queue in WebLogic 10.3.5 However, I can't figure out how to actually implement the solution. It seems simple enough to match the subdeployment and target to the…
jumps4fun
  • 3,994
  • 10
  • 50
  • 96
1
vote
0 answers

tomcat 7 ( Linux) active directory JNLDIRealm integration

I'm trying to integrate Tomcat 7 (installed on Linux server) with Active Directory,following documentation http://tomcat.apache.org/tomcat-7.0-doc/windows-auth-howto.html I have modified server.xml
OroLezzi
  • 31
  • 4
1
vote
1 answer

How to close my LDAP connection to the Active Directory

I have a code which authenticates, interacts with the Active Directory and fetches some information. But I just want to be sure that I close the connection and return it to the pool. How can I ensure them? Here is my code: import…
Yogamurthy
  • 988
  • 15
  • 22
1
vote
0 answers

Converted JNDI name [java:comp/env/***] not found before reading the properties file

Good Mornig. I have an application in tomcat 8, java 1.7, Spring 3.2.2 and primefaces 5.0. When the application starts, it shows the next debug message in console: Looking up JNDI object with name [java:comp/env/etl.csv.token] …
John David
  • 11
  • 1
  • 2
1
vote
0 answers

javax.naming.NamingException: Cannot create resource instance - Tried many different ways

I have tried many different ways to fix this issue but it is throwing error as below. We are using CXF Framework to write web services and read data source from context.xml file. It works fine for data source which connects to database or other…
user3314492
  • 233
  • 5
  • 17
1
vote
1 answer

Send JMS from Jboss 4.2.3GA to 7.1.1

I'm trying to send a JMS message (remotely) from Jboss 4.2.3GA instance to Jboss 7.1.1.Final instance. When I try to do it "7.1.1 style" properties.put(Context.INITIAL_CONTEXT_FACTORY,…
zbig
  • 3,830
  • 2
  • 29
  • 37
1
vote
2 answers

Portable JNDI Syntax lookup for EJB on Glassfish

Previous attempts were to have Netbeans deploy an EJB module, which builds as a JAR rather than an EAR, onto the Glassfish server which Netbeans has access to. However, deploying that JAR to Glassfish through the CLI with asadmin possibly runs…
Thufir
  • 8,216
  • 28
  • 125
  • 273
1
vote
1 answer

JNDI pooled data source: Driver-based vs DataSource-based

I'm looking to set up Tomcat to use a JNDI pooled data source for a MySQL database. HikariCP seems to be the recommended choice recently (at least on StackOverflow). The documentation helpfully lists the configuration (presumably for server.xml or…
Steve Chambers
  • 37,270
  • 24
  • 156
  • 208
1
vote
3 answers

how to migrate spring mail session jndi xml configuration to java config

I'm new to Spring MVC. I've configured a mail session on Wildfly 8.0 Application server. I am using Spring 3.2. I am using a lookup like this:
Kudpudeen
  • 83
  • 1
  • 6
1
vote
1 answer

Stateful bean, JNDI and Jboss WildFly

I was reading a book regarding EJB 3.0 and it says that stateful session bean should be looked up using JNDI. I have an stateful session bean as follows: @Local @Stateful public class JpaDao { @PersistenceContext(unitName="EmployeeService") …
user204069
  • 1,215
  • 3
  • 19
  • 25
1
vote
1 answer

JBOSS 6.1 Cannot find jndi datasource , Services with missing/unavailable dependencies

I’m migrating older OC4J web app to JBOSS 6.1 application server , Hibernate 4.6 final, JDK 1.7, and EAR deployment. I have already updated my ANT build scripts & everything is compiled & WAR/EAR files are created without any errors. When I enable…
cyber101
  • 2,822
  • 14
  • 50
  • 93
1
vote
2 answers

Parameter substitution in log4j2

I need to allow deployers to specify the path for our Tomcat webapp log4j2 RollingFileLogger. I'd like to use JNDI but can use a plain -D param if I had to. This apache page seems to explain things pretty well. Only problem is it doesn't work. …
Terry
  • 911
  • 10
  • 26
1
vote
0 answers

Configure Jndi names in Netbeans 8

In Netbeans 7.4 I used to create a Persistence Unit by choosing a JNDI name and then a database connection. In Netbeans 8 I repeated the same process and started to give the old error Invalid resource : jdbc/something__pm I also created a JDB…
Goldbones
  • 1,407
  • 3
  • 21
  • 55
1
vote
2 answers

Datasource not found in IBM BPM. What am I doing wrong?

I tested the connection through websphere and it works but when I try to execute query from BPM it gives following error. IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
Omkar J
  • 53
  • 10
1
vote
1 answer

Why to use JNDI? - Remote EJB invocations

Why only JNDI is used to access remote EJB (different JVM, differente host)? why not use the @ EJB annotation? In all EJB books mention that you can access remote EJB using @EJB annotation. Example:…
1 2 3
99
100