Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Eclipse link connection timeout

By default Eclipselink attempts to reconnect connection 3 times.
Don't set timeout property.
Instead in session customizer set the number of reconnection attempts to 0:

public class NoReconnectionCustomizer implements SessionCustomizer {
   public void customize(Session session) {
       session.getLogin().setQueryRetryAttemptCount(0);
// the following required only in case both jta and non-jta datasources used ((DatabaseLogin)((ServerSession)session).getReadConnectionPool().getLogin()).setQueryRetryAttemptCount(0);
   }
}

On 7/28/2010 4:43 AM, cscage wrote:
(continue).. but nothing helps. I don't believe than ojdbc1.4 or ojdbc6 do
not support timeout of query or connection.


Back to the top