WebSphere Query Timeout Thread Interruption Control | Generated by AI

Home 2025.09

In WebSphere Application Server, the queryTimeoutInterruptProcessingMode property is a data source custom property that controls how query timeouts are enforced when an SQL statement exceeds its configured queryTimeout.

Here’s how it works:

Default Behavior

Normally, when a query timeout is reached, WebSphere calls the JDBC driver’s Statement.cancel() method. This only sends a cancel request to the database. Depending on the database and driver, the running SQL may or may not stop immediately. Sometimes it continues consuming resources on the database server until it finishes or until the DB itself decides to terminate it.

Purpose of queryTimeoutInterruptProcessingMode

This property determines what WebSphere itself does in addition to calling Statement.cancel():

Typical Use Cases


In short: queryTimeoutInterruptProcessingMode=true makes WebSphere forcibly break the waiting thread when query timeout is reached. false relies only on the DB driver to cancel the SQL. It’s a trade-off between responsiveness and stability.


Do you want me to also explain how this interacts with statementTimeout and connectionTimeout in WebSphere data sources? That way you’ll see the full picture of timeout handling.


Back Donate