Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 11 Transactions : Java Transaction API (JTA) UserTransaction

Java Transaction API (JTA) UserTransaction
The Java Transaction API (JTA) UserTransaction type allows JDBC, JMS, ActiveEnterprise Adapter (using JMS transports), and EJB activities to participate in transactions. JTA specifies standard Java interfaces between a transaction manager and the parties involved in a distributed transaction system: the resource manager, the application server, and the application. Sun Microsystems developed and maintains the API. See http://java.sun.com/products/jta/ for more information about the API.
Using this type of transaction requires an installed and configured application server that implements the JTA interface javax.transaction.UserTransaction. For example, the following transaction servers implement the JTA transaction interface:
If the transaction commits, all eligible activities in the transaction group commit. If the transaction rolls back, all eligible activities in the transaction group roll back. The transaction group commits automatically if all activities in the group complete and a non-error transition is taken out of the transaction group. If any errors occur while processing the activities in the group, even errors in activities that do not participate in the transaction, the transaction is rolled back and an error is returned. You should create an error transition out of the group to handle this situation.
Configuring JTA UserTransaction Transactions
To configure a JTA UserTransaction, select JTA UserTransaction as the transaction type of the group.
JDBC Connections used by JDBC activities in the transaction group must be configured to use JNDI as the connection type and specify the data source in the application server. Activities that use the JMS transport must be configured to use the XA connection factory in the application server. The JNDI configuration for JMS, EJB, or JDBC activities must specify the appropriate connection and JNDI Context information for the application server.
The JTA UserTransaction transaction group has the following fields on the transaction group’s Configuration tab:
A JTA UserTransaction shared configuration resource. See TIBCO ActiveMatrix BusinessWorks Palette Reference for more information about this resource.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved