Tutorial by Examples

Declare JNDI resource in tomcat's server.xml, using the Tomcat JDBC connection pool: <GlobalNamingResources> <Resource name="jdbc/DatabaseName" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" auth="Container" ...
In the JNDI declaration you may want to encrypt the username and password. You have to implement a custom datasource factory in order to be able to decrypt the credentials. In server.xml replace factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" by factory="cypher.MyCustomDataS...

Page 1 of 1