EclipseLink Connection Timeout
问题 This should be an old question, but I searched a lot and found nothing useful. My main problem is that when the connection losts, my Java swing application freezes. There must be a connection timeout so that the application informs the user. I tried this and this but they wasn't helpful. Is this really a weakness in EclipseLink or this is something I can't figure out? Edited: Here is how I connect via EclipseLink: private static javax.persistence.EntityManager em = null; public static javax