directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Broadhead <matthew.broadh...@nbmlaw.co.uk>
Subject ldap connection pool
Date Tue, 03 Oct 2017 11:08:56 GMT
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;

Mime
View raw message