Reputation: 135
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
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