Monday, October 24, 2011

Avoiding “Could not enlist in transaction” Errors in JBoss

Problem
Process stalls and throws the following error (LiveCycle hosted on JBoss):
Explanation
Within the same process, 2 calls were being made to different non-XA data sources. This is not supported by default on JBoss. Hence the error is thrown.

Solution
To enable calling more than 1 non-XA data source within the same transaction (process), additional configuration is required
  1. Locate the jbossjta-properties.xml file in the [appserver root]/server/all/conf/ directory and open the file in an editor.
  2. Locate and modify the ‘properties’ element as follows. Add the property (shown in bold) if it doesn’t already exist in the jbossjta-properties.xml file.
  3. Save and close the file.

1 comment:

  1. Muchas gracias

    Me acabas de solucionar un problema con el que llevaba varios días peleándome.

    Muchas gracias!!!

    ReplyDelete