PDA

View Full Version : LDAP - DataSource Equivalent



routis
Mar 19th, 2007, 03:36 AM
I want to use an LdapDao that runs within web application deployed on a clustered environment.

My problem is that I don't want to deploy the credentials of the LDAP server using properties files.

Is there an equivalent of jdbc DataSource? That is a ldap connection factory that can be looked up from jndi.

rasky
Mar 19th, 2007, 05:29 AM
The equivalent would be ContextSource, and that is what you would store in jndi. Maybe this thread (http://forum.springframework.org/showthread.php?t=35122&highlight=ContextSource) will be helpful to you?