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.

9.3 Testing the configuration<br />

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

Note: We found that <strong>CICS</strong> TG configuration files are generally portable<br />

between different UNIX platforms and between Windows and UNIX. However,<br />

the name of the Client daemon TCP/IP protocol driver is different on Windows<br />

and on UNIX. Using a Windows configuration file with a TCP/IP server<br />

connection defined on a UNIX platform results in error messages in the Client<br />

daemon log:<br />

[3251] CCL:CCL3247 Error loading DLL '/opt/ctg/bin/CCLWNTIP.a'<br />

(/opt/ctg/bin/CCLWNTIP.a: cannot open shared object file: No such file or<br />

directory, 0)<br />

[1149] POP:CCL3229E Cannot load protocol driver 'CCLWNTIP'<br />

Running the Configuration Tool with the -plat option, specifying the platform<br />

to configure for, avoids such problems.<br />

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

This is installed in the <strong>CICS</strong> TG samples directory, inside the java subdirectory.<br />

<strong>The</strong> sample’s Java class is defined to be in the Java package<br />

com.ibm.ctg.samples.eci, so the sample source file is stored under the following<br />

directory structure:<br />

com/ibm/ctg/samples/eci<br />

<strong>The</strong> full path to the EciB1 sample on our Linux system is:<br />

/opt/ctg/samples/java/com/ibm/ctg/samples/eci/EciB1.java<br />

and on our Windows system it is:<br />

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

<strong>Gateway</strong>\samples\java\com\ibm\ctg\samples\eci\EciB1.java<br />

<strong>The</strong> sample is also provided in a compiled form inside ctgsamples.jar.<br />

We used EciB1 from our Linux system to call the <strong>CICS</strong> program EC01. <strong>The</strong><br />

EciB1 application flows an ECI request to a connected <strong>CICS</strong> region through a<br />

specified <strong>CICS</strong> TG (Figure 9-5 on page 225) and invokes the transaction EC01.<br />

<strong>The</strong> <strong>CICS</strong> TG URL is specified as an input parameter, and the <strong>CICS</strong> region is<br />

entered at the interactive prompt. We then used EciB1 from a Window 2000<br />

workstation to call the same <strong>CICS</strong> program (Figure 9-6 on page 225).

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

Saved successfully!

Ooh no, something went wrong!