Can anyone help explain why JNDI should be a preferred way to expose services such as a database / jms?
I am trying to implement JMS in my spring application. I have defined the JNDI name + queue name in applicationContext.xml as follows:
I am trying to create a Tomcat JNDI resource for MSSQL database. This is how my resource string looks in tomcat context.xml file
I have a jndi entry in Config.groovy like so: grails.naming.entries = [\'jdbc/test_me\': [ type: \"javax.sql.DataSource\", //required
To test a username-password combination with ldap i do the following connect to an ldap server with a masteruser account
I\'m using Spring and Hibernate and want to do some intergration testing with DBUnit. In my application-context.xml I currently specify a datasource via jndi-lookup which reads the jndi-name from a pr
I want to write an application which has 2 EJBs. This application can run in both OpenEJB and WebLogic 10.3. Both of the EJB are EJB 3.0.
I want to control the connection timeout by setting com.sun.jndi.ldap.connect.timeout property. It works well for values under 1000 ms, but if I set values bigger then 1000, the timeout doesn\'t incre
What is the relationship between java:comp/env and java:global (regarding 3.1 spec)? Seems like java:comp/env contains specific to EJB refer开发者_如何学Cences.
What I am trying to do is to retrieve a DataSource from a locally running JBoss (EAP 5.1) per JNDI. It works fine inside a deployed DAO, but I seem to misunderstand something as when I am trying to g