Solution for Exception – Could not enlist in transaction on entering meta-aware object

You will get below error when you try to access more than 1 non-XA datasource in same process in wildfly 10.

Caused by: javax.resource.ResourceException: IJ000461: Could not enlist in transaction on entering meta-aware object at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.managedConnectionReconnected(TxConnectionManagerImpl.java:560) at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.reconnectManagedConnection(AbstractConnectionManager.java:928) … 89 more
Caused by: javax.transaction.SystemException: IJ000356: Failed to enlist: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 0:ffff7f000101:25c3e8ab:5875c454:3ec status: ActionStatus.ABORT_ONLY >

Solution : Update system-properties in standalone.xml file like below
<system-properties>
…………………
<property name=”com.arjuna.ats.arjuna.allowMultipleLastResources” value=”true”/>
</system-properties>

Restart wildfly if it still gives above error.

Happy coding 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s