tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trames <tim.a...@promedica.org>
Subject Re: Resource JDBC connection pooling USING LDAP
Date Tue, 17 Feb 2009 15:46:46 GMT

Thanks, that is exactly what I did.  

Since the documentation stated that it used apache (tomcat's version) dbcp
and the BasicDataSourceFactory, I looked at the source for this class
through SVN.  It fairly simply creates a BasicDataSource.  So that is what I
did. I retrieved all the parameters from LDAP within my factory class.
Worked out great.





Christopher Schultz-2 wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Tim,
> 
> On 2/13/2009 5:02 PM, trames wrote:
>> My goal is to NOT embed the database connection user name, password, or
>> even
>> server url like it is shown below.   I have the ApacheDS LDAP server set
>> up,
>> and would like to retrieve the credentials/server from that.
> 
> I don't believe Tomcat has anything built-in that can do that.
> 
>> Is there a way to get the entire URL string from LDAP? Is there some
>> other
>> way to do what I would like to do? Would I have to write my own Resource
>> Factory?
> 
> I believe you will have to write your own ResourceFactory.
> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkmZ3mQACgkQ9CaO5/Lv0PD8lQCfYaV1e3nw9xyOqxm4KGtW9/RP
> f6sAn35DIZ54DC5li+bnxCowMufIeHLW
> =mRq5
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Resource-JDBC-connection-pooling-USING-LDAP-tp22005711p22059917.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message