Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connection pooling in Tomcat

843836Oct 29 2004 — edited Nov 13 2005
Hello all,

I've been using tomcat 5.0.27 and for quite sometime now using the connection pooling on tomcat as well.
I configure DataSource(no.of connections,username, password etc) by logging into tomcat admin console.
But what I've seen is it adds datasource configuration data into server.xml - including the username and password to the database(which will be supplied to the driver by the container when creating a connection). But I don't want the username and password to be present in the xml file (i.e. in clear text format). Is it possible to somehow give the password and the username when requesting for a connection i.e. datasource.getConnection and not while configuring the pool and still get it working?

Please guide me.
Thanks,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 11 2005
Added on Oct 29 2004
10 comments
502 views