Hello,
to whom it may concern, I solved this problem in another way. In the
ContextFactory I only return an
InitialDirContext. The class which wants to connect to the LDAP uses
this InitialDirContext, looks up the environment and connects to the
LDAP.
You can find the source code at:
Hello,
ho did you create your ldap object (not ldap/ox) ? For ox to be pool,
the ldap object must be a pool, that return a new object each time a
child object is requested. envCtx.lookup(ldap/ox) actually request
object ox from object ldap. It ldap is not a pool, it will return
a single object,