|
| Copyright © Cloud Software Group, Inc. All Rights Reserved |
The XA Transaction type allows you to specify an XA-compliant transaction manager provided by a third party that supports the interfaces javax.transaction.TransactionManager and javax.transaction.Transaction. The following XA-compliant transaction managers have been tested with TIBCO ActiveMatrix BusinessWorks:
The transaction manager is typically executed in the same Java VM as TIBCO ActiveMatrix BusinessWorks. Because of this, for third-party transaction managers, the path to the files needed to run the transaction manager must be placed in the TIBCO ActiveMatrix BusinessWorks classpath in the bwengine.tra and designer.tra files. For the TIBCO BusinessWorks XA Transaction Manager, configuration occurs during product installation.
An XA Transaction shared configuration resource. See TIBCO ActiveMatrix BusinessWorks Palette Reference for more information about this resource. Note: Transactional acknowledge mode is not supported for Wait for JMS Topic Message activities. When the Include Checkpoints field is checked, you can specify a duplicate key in this field to perform duplicate checking. This is useful if the checkpoint included in the transaction is the first checkpoint in the process definition. If the process engine crashes after the checkpoint, restarted process instances can use the duplicate key to determine if the transaction has already occurred. See Detecting Duplicate Process Instances for more information about specifying duplicate keys.To configure the BusinessWorks XA Transaction Manager manually, append the following paths to the tibco.env.CUSTOM_EXT_APPEND_CP property in bwengine.tra and designer.tra files:<TIBCO_HOME>/bw/tm/1.0/lib<TIBCO_HOME>/bw/tm/1.0/lib/extYou may wish to set some of the custom engine properties available for this transaction manager. See TIBCO ActiveMatrix BusinessWorks Administration for more information about custom engine properties.
1.
2. The logging details for JOTM is specified in the TIBCO ActiveMatrix BusinessWorks log4j property file (<BW_HOME>\5.12\lib\log4j.properties). By default, the log4j property file is configured to send JOTM log messages to the TIBCO ActiveMatrix BusinessWorks log file (BWLogFileAppender).To send JOTM log messages to a separate file, you must modify the TIBCO ActiveMatrix BusinessWorks log4j property file. There are several JOTM logger properties with the prefix, log4j.logger.org.objectweb.jotm. To each of these properties, add jotm_log_file.See Logging for Third-Party Components for more information about the TIBCO ActiveMatrix BusinessWorks log4j file.
1. ATS provides two transaction manager implementations, one that is local (com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple) and one that is based on the distributed JTA implementation (com.arjuna.ats.internal.jta.transaction.jts.TransactionManagerImple). TIBCO ActiveMatrix BusinessWorks only supports the local implementations. For TIBCO ActiveMatrix BusinessWorks to work correctly, ATS must be configured to use the local implementations. Open the ATS properties file (<ATS_HOME>\ats-4.0\etc\arjunajts-properties.xml) and make sure that the properties com.arjuna.ats.jta.jtaTMImplementation and com.arjuna.ats.jta.jtaUTImplementation are set to the following values:
2. ATS provides two recovery modules for XA resources, one for local transaction recovery and one for distributed transaction recovery. In TIBCO ActiveMatrix BusinessWorks, local transaction recovery is used. By default the ATS properties file may be configured to enable both the local transaction recovery (<property name="com.arjuna.ats.arjuna.recovery.recoveryExtension5" value="com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule"/>) and distributed transaction recovery (<property name="com.arjuna.ats.arjuna.recovery.recoveryExtension6" value="com.arjuna.ats.internal.jta.recovery.jts.XARecoveryModule"/>).value="your directory location" />
1.
2. The logging details for ATS is specified in the TIBCO ActiveMatrix BusinessWorks log4j property file (<BW_HOME>\5.12\lib\log4j.properties). By default, the log4j property file is configured to send ATS log messages to the TIBCO ActiveMatrix BusinessWorks log file (BWLogFileAppender).To send ATS log messages to a separate file, you must modify the TIBCO ActiveMatrix BusinessWorks log4j property file. Comment out the line containing: log4j.logger.com.arjuna=WARN, tibco_bw_log. Remove the comment from the line containing #log4j.logger.com.arjuna=WARN, tibco_bw_log, ats_log_file.See Logging for Third-Party Components for more information about the TIBCO ActiveMatrix BusinessWorks log4j file.
If you are using non-TIBCO JDBC drivers (such as Oracle or IBM JDBC drivers), then edit the file <BW_HOME>/tm/1.0/bin/setupenv.bat or <BW_HOME>/tm/1.0/bin/setup_env.sh. Set the variable TIBCO_TM_JDBC_JARS to the name of the non-TIBCO JDBC driver JAR file.After a failure, the ATS ObjectStore may contain the serialized TIBCO ActiveMatrix BusinessWorks Java classes. When running the recovery manager in a separate Java VM, the recovery manager requires references to the TIBCO ActiveMatrix BusinessWorks .jar files to de-serialize the classes. Therefore, when starting the recovery manager in a separate Java VM, verify the following:
• The classpath for the Arjuna Transaction Recovery Manager must contain the location of the TIBCO ActiveMatrix BusinessWorks .jar files. The following libraries must be included in <ARJUNATS_HOME>\bin\setup-env.bat:<BW_HOME>lib\palettes\plugins.jar<BW_HOME>lib\engine.jar<TRA_HOME>lib\TIBCOxml.jar<TRA_HOME>lib\TIBCOrt.jar<TRA_HOME>lib\TIBCrypt.jar<TRA_HOME>lib\TIBCOjms.jar<TPCL_HOME>jdbc\TIbase.jar<TPCL_HOME>jdbc\TIutil.jar<TPCL_HOME>jdbc\TIoracle.jar<TPCL_HOME>jdbc\TIsqlserver.jar<TPCL_HOME>jdbc\TIsybase.jar<TPCL_HOME>jdbc\TIdb2.jar<J2EE_LIB>\jms.jar<ORACLE_LIB>\ojdbc14.jar (when using an Oracle database)
• The ATS property file for the recovery manager must refer to the same ATS ObjectStore that is configured for TIBCO ActiveMatrix BusinessWorks (see Configuring Transaction Managers for a description of configuring the ATS object store).
TIBCO ActiveMatrix BusinessWorks provides TIBCO Hawk microagent methods for monitoring XA transactions processed by TIBCO XA Transaction Manager or Arjuna Transaction manager. You can use the Hawk console to return a list of transactions that are currently being processed, or you can return statistics for all transactions since the process engine started. The two microagent methods available for transaction monitoring are ListInflightTransactions() and GetTransactionStatus(). See TIBCO Administrator User’s Guide for more information about these microagent methods.
|
| Copyright © Cloud Software Group, Inc. All Rights Reserved |