title: specify query timeout when using toplink essential query hint
body: <p>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.</p>
  
  <p>have tried the solution in
  <a href="http://forums.oracle.com/forums/thread.jspa?threadID=974732&amp;tstart=-1" rel="nofollow noreferrer">http://forums.oracle.com/forums/thread.jspa?threadID=974732&amp;tstart=-1</a>
  but it seems the DatabaseQuery which one could set a timeout value is actually for Toplink, not TopLink essential.</p>
  
  <p>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)</p>