You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Matthew Broadhead <ma...@nbmlaw.co.uk> on 2017/10/03 11:08:56 UTC
ldap connection pool
i am trying to set up an ldap connection pool in a webapp
http://directory.apache.org/api/user-guide/2.1-connection-disconnection.html
i tried adding the connection pool in src/main/webapp/META-INF/context.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context reloadable="true">
<Resource id="ldap/Connection"
type="org.apache.directory.ldap.client.api.LdapConnectionPool"
ldapHost="ns1.domain.tld" ldapPort="10636" useSsl="true"
name="uid=admin,ou=system" credentials="password" />
</Context>
but i get the error
org.apache.openejb.OpenEJBException: Can't find resource for class
uk.me.kissy.directory.dao.LdapDao#ldapConnectionPool. (No provider
available for resource-ref 'null' of type
'org.apache.directory.ldap.client.api.LdapConnectionPool' for 'TokenTimer'.)
when trying to access the resource
@Resource(name = "ldap/Connection")
private LdapConnection ldapConnection;