Skip Headers

# Configuring Query Timeout at the Descriptor Level

Previous

Next

You can specify how the TopLink runtime handles the duration of queries on a descriptor's reference class. Specifying a query timeout at the descriptor level applies to all queries on the descriptor's reference class. A query timeout ensures that your application does not block forever over a hung or lengthy query that does not return in a timely fashion.

Table: Descriptor Support for Read Only summarizes which descriptors support query timeout configuration.

Descriptor Support for Cache Refresh

Descriptor | Using TopLink Workbench | Using Java
--- | --- | ---
Relational DescriptorsFoot 1 |  |
Object-Relational Descriptors |  |
EIS Descriptor |  |
XML Descriptors |  |

Footnote 1 Relational class descriptors only (see "Relational Class Descriptors").

You can also configure a timeout on a per-query basis. For more information, see the following:

- "Configuring Named Query Advanced Options"

- "Configuring Query Timeout at the Query Level"