04.04.2013 Views

Addressing OLTP Solutions with CICS: The Transaction Server ... - Ibm

Addressing OLTP Solutions with CICS: The Transaction Server ... - Ibm

Addressing OLTP Solutions with CICS: The Transaction Server ... - Ibm

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MQ manager, recognizing that the message is destined for a remote MQ<br />

manager, places the message on to the transmission queue. <strong>The</strong> sender MCA<br />

reads the transmission queue and sends the data through the network. <strong>The</strong> data<br />

is transmitted using Message Channel Protocol over a TCP/IP or APPC<br />

connection. In the meantime, the <strong>CICS</strong> transaction can proceed to do other<br />

processing. When the message data arrives at the remote machine, the receiver<br />

MCA receives the data and puts the message into a target queue.<br />

MQSeries provides a trigger facility to start the user application to process the<br />

messages when they become available in the queue. With the predefined<br />

triggered conditions, the Trigger Monitor program starts up the user program<br />

associated <strong>with</strong> that target queue. <strong>The</strong> trigger condition could be the receipt of<br />

the first message in the particular target queue, for example. <strong>The</strong> partner user<br />

program, which was invoked though the trigger facility, uses an MQGET call to<br />

retrieve the message from which it builds the proper SQL call. <strong>The</strong> partner user<br />

program then issues the SQL call directly to the DB2 for MVS/ESA server for<br />

processing in the same way that a batch program does. <strong>The</strong> result returned by<br />

the DB2 for MVS/ESA server can be further processed by this partner user<br />

program before the final result is passed back to its partner <strong>CICS</strong> application as<br />

a message through the MQ connection in the reverse direction. <strong>The</strong> <strong>CICS</strong><br />

application program has to issue an MQGET call to retrieve the message<br />

containing the final result.<br />

If you use the <strong>CICS</strong> adapter of the MQSeries for MVS in the remote MVS/ESA<br />

system, you can write the partner user program as a <strong>CICS</strong> transaction that can<br />

communicate <strong>with</strong> both DB2 for MVS/ESA and MQI. This alternative is less<br />

efficient than the direct communication between the <strong>CICS</strong> for AIX region and the<br />

<strong>CICS</strong>/ESA region.<br />

Figure 34. <strong>CICS</strong> for AIX Access to a Remote DB2 for MVS/ESA Database Using MQ Connections<br />

7.4.5.1 Planning Considerations<br />

<strong>The</strong> use of MQ connections can make access to DB2 for MVS/ESA databases<br />

more complicated than the use of DDCS or <strong>CICS</strong>/ESA. However, it gives you the<br />

advantage of asynchronous message processing and shields you from the<br />

network complexity that exists when two machines are not adjacent to each<br />

other but connected through a series of intermediate machines. Planning for<br />

Chapter 7. Interactions <strong>with</strong> the DB2 Family of Products 107

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!