Secure « Connection « JPA Q&A





2. Secure connection    forum.hibernate.org

Newbie Joined: Thu Sep 09, 2004 9:01 am Posts: 3 Hi people, I'm having problems with the use of Hibernate+xml-rpc+ssl. I have generated the certificates and I found no problems with the handshake's process, but Hibernate is stopping when it's trying to initializing the pool(c3p0), returning one error of class not found: client error: . . . org.apache.xmlrpc.XmlRpcException: java.lang.Exception: java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/PoolConfig ...

3. How to secure the datasource?    forum.hibernate.org

You can do some thing like: -Store the database details in secure store encrypted -Read them from your Hibernate class that configures the SessionFactory -Add those properties to Configuration object and configure your session factory. Code: //hibernateConfURL - myhibernate.cfg.xml Configuration config= new Configuration(); config.configure(hibernateConfURL); ...