Using Statement#setQueryTimeout(int) on application does not become effective in JBoss EAP 5

Solution Unverified - Updated -

Issue

Using Statement#setQueryTimeout(int) in an application does not become effective when the <query-timeout> setting is configured in the Datasource configuration in JBoss. How can I set query timeout programmatically and overwrite database configuration?

Environment

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

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