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

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

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

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

To enable client tracing, run the sample with the following Java option:<br />

-Dgateway.T.trace=on<br />

<strong>The</strong> address of the <strong>Gateway</strong> has been set to tcp://vmlinux1.itso.ibm.com<br />

Port:2006<br />

<strong>CICS</strong> Servers Defined:<br />

1. SCSCPJA1 -SCSCPJA1 TCPIP<br />

Choose Server to connect to, or q to quit:<br />

1<br />

Program EC01 returned with data:-<br />

Hex: 30342f30362f30322031383a31313a30380<br />

ASCII text: 04/06/02 18:11:08<br />

Note: We used the TCP protocol to connect to the <strong>Gateway</strong> daemon on our<br />

Linux system. If we did not specify the address of the <strong>CICS</strong> TG to connect to,<br />

EciB1 would have used local mode and would still run the <strong>CICS</strong> program<br />

successfully. However, local mode does not use the <strong>Gateway</strong> daemon and<br />

would therefore not have tested the <strong>Gateway</strong> daemon we had running on<br />

Linux.<br />

8. Once connectivity from Linux was working, we then tested from a Windows<br />

2000 workstation. We set the CLASSPATH on Windows 2000 to include<br />

ctgclient.jar and ctgsamples.jar using the following command:<br />

set CLASSPATH=C:\Program Files\<strong>IBM</strong>\<strong>IBM</strong> <strong>CICS</strong> <strong>Transaction</strong><br />

<strong>Gateway</strong>\classes\ctgclient.jar;c:\Program Files\<strong>IBM</strong>\<strong>IBM</strong> <strong>CICS</strong> <strong>Transaction</strong><br />

<strong>Gateway</strong>\classes\ctgsamples.jar;<br />

9. We then ran the EciB1 Java application on our Windows 2000 workstation<br />

using the following command:<br />

java com.ibm.ctg.samples.eci.EciB1 tcp://vmlinux1.itso.ibm.com<br />

This again ran the compiled version of EciB1 inside ctgsamples.jar and<br />

connected to the <strong>CICS</strong> TG on our Linux system. We entered 1 at the prompt<br />

to select our <strong>CICS</strong> server. <strong>The</strong> successful output of EciB1 was almost<br />

identical to that shown in Example 9-17 on page 227, apart from the date<br />

returned by EC01.

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

Saved successfully!

Ooh no, something went wrong!