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.

CTGTesterCCI<br />

<strong>The</strong> CTGTesterCCI enterprise application calls a <strong>CICS</strong> program using the <strong>CICS</strong><br />

ECI resource adapter and displays the result. Figure 10-4 illustrates the complete<br />

architecture of the enterprise application.<br />

Web browser<br />

HTML<br />

JSP<br />

<strong>WebSphere</strong><br />

Application Server<br />

Web container<br />

EJB container<br />

session bean<br />

CTGTesterCCI<br />

servlet<br />

CTGTesterCCIServlet<br />

<strong>CICS</strong> ECI<br />

resource<br />

adapter<br />

Figure 10-4 Application architecture of CTGTesterCCI, local mode<br />

CCI<br />

<strong>CICS</strong> TG<br />

z/OS<br />

<strong>CICS</strong> TS V2.2<br />

EC01<br />

(COBOL<br />

program)<br />

<strong>The</strong> flow of control through the enterprise application is as follows:<br />

► <strong>The</strong> JSP page index.jsp contains an HTML form that starts the servlet<br />

CTGTesterCCIServlet. Several parameters are sent to the servlet, including<br />

the name of the <strong>CICS</strong> program to call, the COMMAREA input and length, and<br />

the encoding to use.<br />

► <strong>The</strong> servlet passes these parameters on to the session bean, CTGTesterCCI.<br />

► <strong>The</strong> session bean makes the ECI call to <strong>CICS</strong> using the <strong>CICS</strong> ECI resource<br />

adapter, and returns the response back to the servlet.<br />

► <strong>The</strong> servlet forwards the results to one of two JSPs, depending on whether<br />

the request was successful or not.<br />

► <strong>The</strong> JSP formats and displays the results of the request.<br />

<strong>The</strong> servlet also allows use of an unmanaged connection, in which case several<br />

additional parameters, such as <strong>CICS</strong> server and user details, may be specified,<br />

since these are normally defined in the managed connection factory.<br />

This sample enterprise application is provided in the file CTGTesterCCI.ear. To<br />

obtain this file, see Appendix C, “Additional material” on page 389.<br />

Chapter 10. <strong>CICS</strong> TG and <strong>WebSphere</strong> Application Server for z/OS 243<br />

C<br />

O<br />

M<br />

M<br />

A<br />

R<br />

E<br />

A

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

Saved successfully!

Ooh no, something went wrong!