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.

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

Permit access to the mirror transaction<br />

Any ECI requests received from the <strong>CICS</strong> TG for Windows run under a mirror<br />

transaction. By default, this will be the ASCII mirror, CPMI. To enable our desired<br />

user ID <strong>CICS</strong>RS2 to have access to this transaction, we issued the following<br />

RACF commands to grant access to the SCSCPJA4.CPMI profile to the user<br />

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

RDEF T<strong>CICS</strong>TRN SCSCPJA4.CPMI UACC(NONE)<br />

PERMIT SCSCPJA4.CPMI CLASS(T<strong>CICS</strong>TRN) ID(<strong>CICS</strong>RS2) ACCESS(READ)<br />

SETROPTS RACLIST(T<strong>CICS</strong>TRN) REFRESH<br />

Testing<br />

In order to test our secure <strong>CICS</strong> TG for Windows environment, we again used the<br />

EciB1 synchronous ECI sample. This 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 />

Since we have set up security so a user ID and password are required, EciB1<br />

detects a security error caused by the first request, which includes a null user ID<br />

and password. EciB1 then prompts for a user ID and password, which it flows<br />

with the ECI request. Example 6-6 shows the results of a successful test with<br />

EciB1.<br />

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

C:\>java com.ibm.ctg.samples.eci.EciB1 tcp://volga.almaden.ibm.com 2007<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 />

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://volga.almaden.ibm.com<br />

Port:2007<br />

<strong>CICS</strong> Servers Defined:

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

Saved successfully!

Ooh no, something went wrong!