简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM