References in application deployment descriptor files
References are logical names used to locate external resources and are defined in the application's web.xml file. During deployment references are bound to the physical location of the resource in the target environment.
EJB references Locate home interface of an enterprise bean. Resource references Locate a connection factory object
These objects define connections to external resources such as databases and messaging systems. The container makes references available in a JNDI naming subcontext.
- EJB references...
java:comp/env/ejb
- Resource references...
- JDBC data source...
java:comp/env/jdbc
- JMS connection factories...
java:comp/env/jms
- Mail connection factories...
java:comp/env/mail
- URL connection factories...
java:comp/env/url
Related:Develop applications that use JNDI