Using External JNDI Repositories and Resources

--and jndi-lookup-name refers to the JNDI name to lookup to fetch the

--designated (in this case the java) object.

-->

<external-jndi-resource jndi-name="test/myBean"jndi-lookup-name="cn=myBean"res-type="test.myBean"factory-class="com.sun.jndi.ldap.LdapCtxFactory">

<property name="PROVIDER-URL"value="ldap://ldapserver:389/o=myObjects" /> <property name="SECURITY_AUTHENTICATION" value="simple" />

<property name="SECURITY_PRINCIPAL", value="cn=joeSmith, o=Engineering" /> <property name="SECURITY_CREDENTIALS" value="changeit" />

</external-jndi-resource> </resources>

80

Sun GlassFish Enterprise Server 2.1 Administration Guide • December 2008

Page 80
Image 80
Sun Microsystems 820433510 manual Using External Jndi Repositories and Resources