tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Libor Arndt" <>
Subject Ldap connection as resource problem
Date Sat, 03 Apr 2010 06:25:06 GMT

I want to use LDAP as resource like I am used to access Oracle database to  
store user credentials.
I implemented custom factory class and defined a resource in the  

<Resource name="ldaptest"

Connection works but there are two fundamental problems:

A. During startup GlobalResourcesLifecycleListener is making a mBean for  
every entry in the LDAP directory. There are  tens of thousand of them.
The only way to prevent making mbeans is disabling the  
GlobalResourcesLifecycleListener in the server.xml, which is not possible  
in the production environment.
Is there any other way?
B. The Factory is called and InitialDirContext is created only once, then   
the binding type is changed from NamingEntry.REFERENCE to  
But having used it, I close the InitialDirContext and it's not reusable. I  
need to recreate InitialDirContext every time  it is looked up, not only  
the first time.
Is there any solution except for modyfing the Tomcat source?

thanks a lot in advance for any help.

Libor Arndt

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message