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