Using EncryptedDataSourceFactory is simple. Updating an existing data source to use EncryptedDataSourceFactory can be done by following these steps:
org.ferris.jdj.jdbc-X.Y.Z.jar
file into TOMCAT/server/lib
.
TOMCAT/server/lib
if not already there.
server.xml
and replace the username and password values with their corresponding Base64 equivalents
server.xml
and replace or insert the DataSource "factory" value
to be org.ferris.jdj.dbcp.EncryptedDataSourceFactory
.
For Tomcat 5.0, It should look something like this: