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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

As the COMMAREA has an allowable maximum size of 32 KB, its use for storage<br />

of the data returned from the DPL request would in turn limit to 32KB the<br />

maximum output of the SQL call processed by the DB2 for MVS/ESA server.<br />

Where more than 32 KB of data has to be returned, there are two possibilities:<br />

filtering of the data returned to the <strong>CICS</strong>/ESA program to reduce the size of data<br />

below 32 KB, or staging the data in a <strong>CICS</strong> resource such as temporary storage.<br />

<strong>The</strong> data is then returned in 32 KB chunks until it has all been sent. <strong>The</strong> staging<br />

method requires more complex application design and results in more network<br />

traffic. <strong>The</strong>refore we recommend that you use another of the possible ways of<br />

accessing the DB2 for MVS/ESA database from a <strong>CICS</strong> for AIX region if you<br />

anticipate that the size of returned data will exceed 32 KB.<br />

7.4.5 Accessing DB2 for MVS/ESA Database through MQseries Products<br />

106 <strong>CICS</strong> for AIX as the <strong>Transaction</strong> <strong>Server</strong><br />

Another means of enabling a <strong>CICS</strong> for AIX application to access a DB2 for<br />

MVS/ESA database is through the use of Distributed Queue Management (DQM)<br />

along <strong>with</strong> two different Message Queue (MQ) managers. Use this method<br />

instead of using DB2 client/server connectivity as the transport vehicle.<br />

IBM MQSeries products enable applications to communicate through messages<br />

and queues. <strong>The</strong> communicating applications can be local on the same system,<br />

or they can be distributed across a wide variety of IBM and non-IBM platforms.<br />

A single programming interface, the Message Queueing Interface (MQI), is<br />

consistent across all the supported platforms. MQSeries can transfer data <strong>with</strong><br />

assured delivery. Messages are not lost even in the event of system failures,<br />

and there is no duplicate delivery of the same message. <strong>The</strong> communicating<br />

applications do not have to be active at the same time. <strong>The</strong> sender can still<br />

continue doing work <strong>with</strong>out having to wait for the receiver. Message-driven<br />

processing is an application style and facilitates the design of applications in<br />

discrete functional blocks that are linked by messages. In this way, the units of<br />

an application can run on different systems at different times, or they can act in<br />

parallel. Faster application development is possible because the MQSeries<br />

products shield the network complexity from the application.<br />

In the local RISC System/6000 machine (containing the <strong>CICS</strong> for AIX region; see<br />

Figure 34 on page 107). MQSeries for AIX is installed, and an instance of the<br />

MQ manager is started up <strong>with</strong> two message channel agents (MCAs), one the<br />

sender MCA, and the other, the receiver MCA. It is essential for <strong>CICS</strong> for AIX<br />

and MQSeries to be installed on the same system when <strong>CICS</strong> applications make<br />

MQI calls. <strong>The</strong> MQ manager must be started before the <strong>CICS</strong> for AIX region is<br />

started.<br />

In the remote S/390 machine, MQSeries for MVS/ESA is installed, and an<br />

instance of the MQ manager is started up <strong>with</strong> one sender MCA and one<br />

receiver MCA. <strong>The</strong> DB2 for MVS/ESA database server resides in this same<br />

MVS/ESA system.<br />

<strong>CICS</strong> for AIX and MQSeries for AIX communicate using the X/Open XA interface.<br />

This requires an XAD entry to be configured using the switch load file supplied<br />

by MQSeries for AIX.<br />

<strong>The</strong> <strong>CICS</strong> application running in the <strong>CICS</strong> for AIX region makes a connection to<br />

the local MQ manager using an MQCONN call to the MQI. <strong>The</strong> <strong>CICS</strong> application<br />

then builds a message <strong>with</strong> the relevant SQL access information that it intends<br />

to pass on to its partner user program in the remote MVS/ESA system. <strong>The</strong><br />

<strong>CICS</strong> application then sends the message by issuing an MQPUT call. <strong>The</strong> local

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

Saved successfully!

Ooh no, something went wrong!