"ARJUNA012141: Multiple last resources have been added to the current transaction. This is transactionally unsafe ..." in JBoss EAP
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7
- 6
Issue
-
The following WARN is observed in the
server.log:WARN ... ARJUNA012141: Multiple last resources have been added to the current transaction. This is transactionally unsafe and should not be relied upon. Current resource is <resource>Or
WARN [com.arjuna.ats.arjuna] ARJUNA012142: You have chosen to enable multiple last resources in the transaction manager. This is transactionally unsafe and should not be relied upon.
Resolution
Remove the allowMultipleLastResources override and apply one of the recommended solutions to avoid unsafe transactional scenarios.
Root Cause
This warning indicates that the property allowMultipleLastResources has been configured to override the built-in safeguard JBoss provides against unsafe transactional usage. This override should be avoided in production systems due to the vulnerability it introduces. With the override in place, applications are vulnerable to inconsistent commit which may result in corruption of data in the backing datasources.
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.