Set 'transaction-isolation' for datasources in JBoss EAP

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7
    • 6

Issue

  • How can transaction-isolation be configured for connections from datasource pools managed by JBoss EAP?
  • Can Microsoft SQL Server's custom SNAPSHOT isolation (value=4096) be configured for managed datasources?

Resolution

Disclaimer: Links contained herein to external website(s) are provided for convenience only. Red Hat has not reviewed the links and is not responsible for the content or its availability. The inclusion of any link to an external website does not imply endorsement by Red Hat of the website or their entities, products or services. You agree that Red Hat is not responsible or liable for any loss or expenses that may result due to your use of (or reliance on) the external site or content.

Configure transaction-isolation Using JBoss CLI

In Standalone Mode

/subsystem=datasources/data-source=MSSqlDS/:write-attribute(name=transaction-isolation,value=TRANSACTION_READ_COMMITTED)

In Domain Mode

/profile=full/subsystem=datasources/data-source=MSSqlDS/:write-attribute(name=transaction-isolation,value=TRANSACTION_READ_COMMITTED)
1

<JBOSS_HOME>/docs/schema/jboss-as-datasources_1_*.xsd

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.