I have an existing java webapp that uses Hibernate for it’s persistence. I’ve been told that I have to have to talk to the DB encrypted – so my first thought is to set it up to do the communication via SSL – and went through figured out how to set up Oracle to listen for JDBC over SSL –
http://www.oracle.com/technology/tech/java/sqlj_jdbc/pdf/wp-oracle-jdbc_thin_ssl_2007.pdf
And wrote a quick test class to verify that it was setup and working (connecting via standard JDBC). That left me with the issue of configuring Hibernate – unfortunately I don’t see how hibernate supports it?
Hibernate works with standard JDBC data sources, so there is no need for Hibernate-specific configuration.
Here’s an quick example that should work when configuring Hibernate with Spring: