M.Hussaini
M.Hussaini

Reputation: 135

JPA Desktop APP and Remote MySQL - How To

I have a swing desktop app, with JPA and MySQL on the same machine. Now i want to take this same application to a network environment with the MySQL on a separate machine.

My options where to user either the ip-address or the machine-name for the host in my persistence.xml. But from your experience what is the best i can use.

Upvotes: 0

Views: 147

Answers (1)

user1565007
user1565007

Reputation:

Host name is better, as they are more human friendly and less subject to change.

IP is more low level id of machine.

Regards Philippe

Upvotes: 2

Related Questions