How to configure CLOSE_CURSORS_AT_COMMIT option for db2 datasource?

Solution Unverified - Updated -

Issue

  • How to set the db2 driver to CLOSE_CURSORS_AT_COMMIT and the default is HOLD_CURSORS_OVER_COMMIT?

  • DB2 tables getting locked due to the jdbc driver using its default value - HOLD_CURSORS_OVER_COMMIT.

Environment

  • Red Hat JBoss Enterprise Application Platform 6.x

  • IBM DB2 driver

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.