Community
Participate
Working Groups
Two problems were observed: 1. Attempt to use non pooled connection would fail with DatabaseException.databaseAccessorNotConnected; 2. postAcquireConnection events were sometimes risen too late, sometimes risen many times. The problems were introduced in 2.2 with multiple write connections on a single ClientSession support.
Created attachment 185263 [details] proposed patch - postAcquireConnection events called before any usage of connection (including begin transaction) and there are no duplicate calls; - non pooled connection case - connect before adding connection to the ClientSession; - renamed postConnectExternalConnection and preDisconnectExternalConnection to postAcquireConnection and preReleaseConnection respectively. Use these methods consistently in all cases to rise these events.
Created attachment 185462 [details] Updated patch
Updated patch checked into trunk (2.2).
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink