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.

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

Testing<br />

In order to test our secure <strong>CICS</strong> TG for z/OS environment, we chose to use the<br />

EciB1 synchronous ECI sample. <strong>The</strong> runtime class for this is provided by the<br />

<strong>CICS</strong> TG in the CTGSAMPLES.JAR and the source is also provided in the<br />

samples\java\com\ibm\ctg\samples\eci directory. To test using the version in the<br />

CTGSAMPLES.JAR, it is merely necessary to copy CTGLCLIENT.JAR and<br />

CTGSAMPLES.JAR to your desired machine and set your classpath to contain<br />

these two JAR files.<br />

We ran our tests from a Windows workstation with the <strong>CICS</strong> TG already installed,<br />

so we set our classpath using the following command:<br />

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

Classes\CTGCLIENT.JAR;C:\Program Files\<strong>IBM</strong>\<strong>IBM</strong> <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong>\<br />

Classes\CTGSAMPLES.JAR<br />

Example 6-3 shows the results of testing EciB1 from a Windows workstation.<br />

Example 6-3 Testing z/OS EXCI security with EciB1 sample<br />

C:\>java com.ibm.ctg.samples.eci.EciB1 tcp://wtsc66oe.itso.ibm.com 2007<br />

<strong>CICS</strong> TG Basic ECI Sample 1<br />

Usage: java com.ibm.ctg.samples.eci.EciB1 [<strong>Gateway</strong> Url]<br />

[<strong>Gateway</strong> Port Number]<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://WTSC66OE.ITSO.<strong>IBM</strong>.COM<br />

Port:2007<br />

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

1. SCSCPJA1 -<br />

2. SCSCPJA4 -<br />

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

2<br />

Enter your <strong>CICS</strong> User ID:<br />

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

Enter your <strong>CICS</strong> Password:<br />

PASSWORD<br />

Program EC01 returned with data:-<br />

Hex: 30362f30362f30322031343a31383a30380<br />

ASCII text: 06/06/02 21:19:08

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

Saved successfully!

Ooh no, something went wrong!