OpenEJBIndexJNDIEJBClassInvoke
   



OpenEJB and EJB Help

This is the private namespace of an Enterprise JavaBean. These entries are configured in the ejb-jar.xml file with the following tags:
<ejb-ref>A reference to an EJB
<resource-ref>A reference to a resource, like a JDBC datasource or J2EE Connector
<env-entry>A basic name/value pair, kind of a beefed up version of a properties file

An EJB can lookup these entries by using the java:comp/env url. Here is an example of code that would be in your bean class:

InitialContext ctx = new InitialContext();
Object obj = ctx.lookup("java:comp/env/myProperty");