specify query timeout when using toplink essential query hint
Posted
by yhzs8
on Stack Overflow
See other posts from Stack Overflow
or by yhzs8
Published on 2010-03-19T15:00:45Z
Indexed on
2010/03/21
11:31 UTC
Read the original article
Hit count: 625
Hi, For glassfish v2, I have searched through the web and I cannot find anyway to specify query timeout when using TopLink essential query hint. We have another option to migrate to EclipseLink but that is not feasible.
have tried the solution in http://forums.oracle.com/forums/thread.jspa?threadID=974732&tstart=-1 but it seems the DatabaseQuery which one could set a timeout value is actually for Toplink, not TopLink essential.
Do we have some other way to instruct the JDBC driver for this timeout value other than the query hint? I need to do it on query-basis and not system-basis (which is just to change the value of DISTRIBUTED_LOCK_TIMEOUT)
© Stack Overflow or respective owner