org.apache.tomcat.jdbc.pool DB password decryption

761 Views Asked by At

We are using tomcat jdbc pool in our project. The connection pool configuration is

<Resource name="jdbc/cc" auth="Container" type="javax.sql.DataSource" username="xx" password="plain text"
  driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/xx?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=utf8"
  maxActive="50" maxIdle="25" minIdle="10" maxWait="10000"  testOnBorrow="true" 
  validationQuery="SELECT 1" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"/>

We want to use encrypted DB password in configuration rather than plain text. How we can do this, please help me on this. ( we know how to do this if we are using tomcat dbcp, but the same implementation is not working for tomcat jdbc)

0

There are 0 best solutions below