ChrisGeo
ChrisGeo

Reputation: 3907

Hibernate Remote MySQL Database through SSH

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

Answers (1)

user1134181
user1134181

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

Related Questions