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.

206 <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong> <strong>V5</strong><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 />

2. We changed the working directory to the <strong>CICS</strong> TG bin directory with the<br />

command:<br />

cd \Program Files\<strong>IBM</strong>\<strong>IBM</strong> <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong>\bin<br />

3. We then ran EciB1 using the command in Example 8-15.<br />

Example 8-15 Command to run EciB1 from Windows against SystemSSL<br />

java com.ibm.ctg.samples.eci.EciB1 ssl://wtsc66oe.itso.ibm.com 8052<br />

jsseclientss.jks default<br />

– You can see the first parameter after the EciB1 call is the location of the<br />

<strong>CICS</strong> TG server. We specified the ssl protocol here.<br />

– <strong>The</strong> second parameter on the EciB1 line is the <strong>CICS</strong> TG port on the z/OS<br />

gateway. Our gateway is listening on port 8052 with the System SSL<br />

protocol handler, so we specify it here.<br />

– <strong>The</strong> third parameter is the SSL classname or keystore. We specified the<br />

client keystore we had in the <strong>CICS</strong> TG bin directory here.<br />

– <strong>The</strong> final parameter to EciB1 is the SSL keystore password. We specified<br />

the password we had used to protect the keystore here.<br />

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

to the <strong>CICS</strong> TG on our z/OS system, using the SSL support provided by JSSE<br />

on Windows and SystemSSL on z/OS. <strong>The</strong> jsseclientss.jks keystore specified<br />

when we ran the command was in the working directory.<br />

4. We entered 1 at the prompt to select our <strong>CICS</strong> server. <strong>The</strong> result of our test is<br />

given in Example 8-16. As shown, EC01 returned the time and date on our<br />

<strong>CICS</strong> server.<br />

Example 8-16 Output from EciB1<br />

<strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong> Basic ECI Sample 1<br />

-------------------------------------------<br />

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

[<strong>Gateway</strong> Port Number]<br />

[SSL Classname]<br />

[SSL Password]<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 ssl://wtsc66oe.itso.ibm.com<br />

Port:8052

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

Saved successfully!

Ooh no, something went wrong!