| Summary: | How To modify Eclipselink JPA 2.0 connection retry behaviour . | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | mjawath <mjawath> |
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | eclipselink.orm-inbox, michael.f.obrien, tom.ware |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
mjawath
Please go through the mailing list or newsgroups for support. Majawath, Hi, this is a good question. If you post your scenario on the following EclipseLink users newsgroup we should be able to help you. An added benifit of this is you will reach the entire user base as well as all the committers. It would benefit your use case if you posted key parts of your architecture like your persistence.xml so we can see how you are using your likely application managed persistence unit. Also how is your Java SE application using the persistence unit - is it a local Persistence bootstrap EMF or are you communicating to a back end server via say @Remote session beans. If you are using a DirectConnector as opposed to a DriverManager and there are no properties available via JPA or orm.xml then maybe we can work something out with a SessionCustomizer or enhance DefaultConnector.directConnect() if you are using it. You may post to the following http://dev.eclipse.org/mhonarc/lists/eclipselink-users/maillist.html thank you /Michael i am using this to develop swing desktop application
local emf bootstrap
i used to create jframe and initialise entity managers and use them for crud action
EntityManager entityManager = Persistence.createEntityManagerFactory("mydb").createEntityManager();
//Database connection is connected
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
entityManager.createQuery(".....").getResultList();
}
//if Database connection is disconnected at this point.
// swing gui edt thread will start to hang or freeze in this place..
// because eclipselink is retrying connection for 3 times this is very awful
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
entityManager.createQuery(".....").getResultList();
}
If you haven't already, please post this via the suggested support channels above. The audience of those support channels will be much wider. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |