Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-dev] Query retry limited to ReadOnly Queries

Can you point me to the code that just retrys for read only queries. I am looking at AbstractSession.executeQuery() in our 2.3.1 stream and I see no such restriction.

-Tom

On 05/10/2011 4:19 PM, sridhar baratam wrote:
Hi All,
It appears the query retry logic will only happen for READONLY queries on a
connection communication error. Is there a specific reason for that? A
non-READONLY query can still fail on a communication error. Due to this specific
restriction, I believe it puts the onus back on the application to code around
these failures for non-readonly queries during communication errors. This may
not be optimal considering the whole logic behind using JPA where developers can
focus on the business logic and do not have to worry about the database stuff. I
could be wrong here and wonder if there is a specific reason to have the retry
limited to READONLY queries.
Can someone throw somelight in this regard?
Thanks
Sridhar



_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev


Back to the top