Connection pooling in Tomcat
843836Oct 29 2004 — edited Nov 13 2005Hello 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,