user1191027
user1191027

Reputation:

Hibernate through SSH

How can I change my hibernate.cfg.xml to connect to a MySQL Server port 3306 on another machine through SSH port 22?

Is it possible to enter the SSH details into hibernate.cfg.xml? If not, is there a better way to do it?

I already read this post but it doesn't explain where the java code goes and how it links to the hibernate.cfg.xml code.

Upvotes: 0

Views: 1079

Answers (1)

Arpit Pandey
Arpit Pandey

Reputation: 21

JSCH (Java Secure Channel). You can use this.

Upvotes: 1

Related Questions