Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] How to set connection timeout?

Em 14/02/2014 14:28, Pedro Peixoto escreveu:
Hi,

I’m using EclipseLink 2.5.1 in a JavaSE Application, on witch i’m having timeout problems.

Timeout takes too long, and i would like to reduce the timeout to something around 5 to 10 seconds.
I’ve tried a few Persistence.xml properties, but none seemed to take effect:
javax.persistence.jdbc.timeout
eclipselink.jdbc.connection_pool.default.wait
eclipselink.jdbc.connections.wait-timeout
javax.persistence.lock.timeout
javax.persistence.query.timeout

I have also tried to set Connection URL parameters like:
connectTimeout
socketTimeout

Also, it seems that eclipselink tries to connect again if a timeout happens. Is there a way to override that behavior?

Thanks in advance,

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


Which database? JDBC driver version? Java Vendor and Version?

Regards,
--

Edson Carlos Ericksson Richter
Sistemas para Bibliotecas, Escolinhas Infantis
Projetos sob medida para sua empresa
Celular: (51) 9318-9766
(51) 8585-0796
"A mente que se abre a uma nova ideia jamais voltará ao seu tamanho original"
- Albert Einstein


Back to the top