« Return to Thread: Cancelling a Query?

Re: Cancelling a Query?

by James Sutherland :: Rate this Message:

Reply to Author | View in Thread

You can set a timeout on a query using the "eclipselink.jdbc.timeout" query hint.

If you didn't set a timeout though, once you have executed it , their is no easy way to kill it.

Tim Hollosy wrote:
Is there any mechanism to cancel a Query in EclipseLink once it's
running? My only idea was killing the current EM....but that doesn't
sound so elegant :)

Thanks,
Tim

 « Return to Thread: Cancelling a Query?