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