Reputation: 3907
I will be deploying a Web Application on a JBoss server and will using JPA/Hibernate for the persistence layer. I want to connect to a Remote MySQL database which I access through SSH with a certificate.
How can I do this programatically in combination with persistence.xml
Upvotes: 1
Views: 1651
Reputation:
If you want connect to database via SSH tunnel I can recommend you Java implementation of SSH. Supports authorization with certificates, port-forwarding, the connection through a proxy, etc.
See
Upvotes: 2