Tutorial

Read JDJ Article

Using EncryptedDataSourceFactory is simple. Updating an existing data source to use EncryptedDataSourceFactory can be done by following these steps:

  1. Drop the org.ferris.jdj.jdbc-X.Y.Z.jar file into TOMCAT/server/lib.
  2. Drop the dependencies into TOMCAT/server/lib if not already there.
  3. Get a Base64 encoding of your username and password. A simple Yahoo! search of "online base64 encoder" will find sites which will do it for you.
  4. Edit server.xml and replace the username and password values with their corresponding Base64 equivalents
  5. Edit 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: <ResourceParams><parameter><name>factory</name><value> org.ferris.jdj.dbcp.EncryptedDataSourceFactory </value></parameter></ResourceParams>
  6. Start up Tomcat and see it in action.