Hi all,
I set up an ExternalContext to a Ldap server by adding the following mbean in the jboss-service.xml (JBOSS version 3.2.3):
<mbean code="org.jboss.naming.ExternalContext" name="jboss.jndi:service=ExternalContext,jndiName=ext/servers"> <attribute name="JndiName">ext/servers</attribute> <attribute name="RemoteAccess">true</attribute> <attribute name="InitialContext">javax.naming.ldap.InitialLdapContext</attribute> <attribute name="PropertiesURL">myldap.properties</attribute> <depends>jboss:service=Naming</depends> </mbean>
java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory java.naming.provider.url=ldap://myhost:389/dc=novice,dc=com java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces