Query timeout configured for data source should not override one set at run-time

Solution In Progress - Updated -

Issue

  • Query timeout configured for data source should not override one set at run-time.
  • When a JDBC PreparedStatement is executed, the following code is called, where the call to checkConfiguredQueryTimeout() indirectly calls setQueryTimeout on the underlying Prepared Statement, overwriting one that might have been set just before the call to execute(). Is it possible for EAP to check whether a query timeout has already been set and, if so, do nothing or leave it alone?
try
      {
         checkTransaction();
  try 
      {
         checkConfiguredQueryTimeout();
         return ps.execute();         
      }
      catch (Throwable t)
      {
         throw checkException(t);
      }
    ...

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.1.2
    • 5.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content