Unable to use Sybase XA connection in transaction group.

Unable to use Sybase XA connection in transaction group.

book

Article ID: KB0088978

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
When I use Sybase XA connection, I get the following exception as soon as I call the SQL Script in the JDBC activity.

BW-XATM-100005 Job-12000 Error in [Process Definition (XA)
(1).process/Group/end]
Transaction commit error. The method 'commit' of the [TIBCO
BusinessWorks XA Transaction Manager] Transaction Manager raised
exception [javax.transaction.RollbackException].
javax.transaction.RollbackException
Symptoms:
When you check the Sybase connection by clicking the Test Connection, it says successfull. But when you try to call any SQL script with JDBC Activity, it throw an exception.
Cause:
This issue may be caused by misconfiguration in Sybase. The Sybase DB you are connecting to does not seem to have DTM enabled for XA transactions.sp_configure 'enable DTM' returns '0'.

Resolution

You need to enable it (set it to 1 and restart the DB) to run XA transactions against this DB. Also the user should have permission to run XA transactions.

It can be set with the following:

sp_role "grant", dtm_tm_role, user_name

Issue/Introduction

Unable to use Sybase XA connection in transaction group.