Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 8 Using the TIBCO Service Gateway for IMS TM : Ensuring Message Queue/Database Consistency

Ensuring Message Queue/Database Consistency
TIBCO Object Service Broker Supplied Facility
IMS TM includes message synchronization for messages destined to other transactions or to terminals as part of the commit processing for a transaction. To make this consistency available for TIBCO Object Service Broker transactions, the TIBCO Object Service Broker-supplied table @IMSDCTRXS helps users to keep track of the status of the most recently executed transaction.
@IMSDCTRXS Table
The @IMSDCTRXS table contains the following fields:
This table has a composite primary key of the LTERM and REGION fields. At the beginning of each session you can have a startup rule access this table to determine if any messages have to be re-sent, as indicated by the value in the fields of the table.
Retrieval of Information
Use the $GETOPT tool to retrieve the LTERM, REGION, CODE, and any other information required to make decisions about re-sending messages.
Sample Rules for Processing
A set of sample rules to do this processing is provided as part of the TIBCO Object Service Broker IMS TM interface. These rules are in the @SAMPLES library (Unit=IMSDC). The entry rule is SAMPLEIMSDCTRX.
The comparison is done on IMS LTERM (logical terminal) names and time/date stamps. The message to be re-sent is stored in the table @IMSDCTRXOUT in multiple segments of 1024 bytes.
@IMSDCTRXOUT is parameterized by LTERM, REGION, and SEGMENT:
LTERM and REGION are the values specified in table @IMSDCTRXS. (REGION in this case refers to the name of the IMS Control Region from which the message is sent.)
If the startup rule is invoked and there is a message to be sent, the sample rules show how to send it back to IMS for processing by the TIBCO Object Service Broker program running in the MPR.
See Also
TIBCO Object Service Broker Programming in Rules about writing rules and rules libraries.
TIBCO Object Service Broker Shareable Tools about the tools.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved