01.01.2013 Views

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

7.3 Testing the configuration<br />

158 <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong> <strong>V5</strong><br />

To test our configuration we used the <strong>CICS</strong> TG sample Java applications, EciB1<br />

and EciI1 from z/OS UNIX System Services and EciI1 from a Windows 2000<br />

workstation. (<strong>The</strong> fourth character in EciI1 is an I as in Intermediate.) Both<br />

applications flow an ECI request to a connected <strong>CICS</strong> region through a <strong>CICS</strong> TG<br />

for z/OS (Figure 7-7). <strong>The</strong> <strong>CICS</strong> TG gateway and port are specified as input<br />

parameters.<br />

Windows NT<br />

ctgsamples.jar<br />

ctgclient.jar<br />

JVM<br />

EciI1<br />

TCP/IP<br />

ECI request<br />

<strong>Gateway</strong><br />

daemon<br />

Figure 7-7 <strong>CICS</strong> TG for z/OS, software configuration<br />

wtsc66oe.itso.ibm.com<br />

z/OS<br />

<strong>CICS</strong> TG<br />

EXCI<br />

via IRC<br />

<strong>The</strong> EciB1 application tests basic communications capability to the <strong>CICS</strong> region.<br />

(<strong>The</strong> “B” stands for “basic”.) <strong>The</strong> output of this application is simply the date and<br />

time as formatted by the <strong>CICS</strong> region.<br />

<strong>The</strong> EciI1 application makes ECI calls in Extend_Mode. This causes the<br />

application to be transactional, allowing two-phase commit.<br />

When called, the EciI1 application prompts the user for the target <strong>CICS</strong> region.<br />

Once that is input, the application starts a transaction, asking if they want to run<br />

again. When the user decides not to run the transaction, the application asks if<br />

the transaction should be committed or rolled back, performs the desired action,<br />

and ends.<br />

EXCI<br />

We verified that our configuration was correctly set up as follows:<br />

JNI<br />

UNIX System Services<br />

JVM<br />

EciB1,<br />

EciI1<br />

ECI request<br />

ctgclient.jar<br />

ctgsamples.jar<br />

<strong>CICS</strong><br />

<strong>CICS</strong><br />

Application<br />

EC01,<br />

EC02

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

Saved successfully!

Ooh no, something went wrong!