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.

4. <strong>The</strong> <strong>CICS</strong> TG Java classes return data from the <strong>CICS</strong> program to the servlet.<br />

5. <strong>The</strong> servlet forwards to a JSP, which displays the response to the end user.<br />

Web browser<br />

Figure B-2 Flow of CTGTesterECI<br />

CTGTesterECI<br />

1 welcome<br />

JSP<br />

2<br />

servlet<br />

CTGTesterECIServlet<br />

3<br />

5<br />

4<br />

success<br />

results<br />

JSP<br />

eci error<br />

error<br />

JSP<br />

We developed and tested our application using <strong>WebSphere</strong> Studio Application<br />

Developer Integration Edition. We chose this environment instead of VisualAge<br />

for Java V4, because it supports editing of EJB 1.1 deployment descriptors, and<br />

can generate deployment code suitable for the <strong>WebSphere</strong> Application Server<br />

V4 container. It can export deployed application files directly, ready for installation<br />

into <strong>WebSphere</strong> Application Server V4. <strong>The</strong>se application files include J2EE<br />

enterprise archives (EAR files), Web application archives (WAR files), and EJB<br />

1.1 deployed JAR files. Application Developer also provides a suitable local test<br />

environment for testing your application components because it uses<br />

<strong>WebSphere</strong> Application Server Advanced Single Server V4.<br />

As an alternative to using Application Developer, you can use VisualAge for Java<br />

in combination with the Application Assembly Tool (AAT) to produce deployable<br />

enterprise beans for <strong>WebSphere</strong> Application Server Advanced Edition.<br />

HTML form<br />

<strong>The</strong> HTML form is in index.jsp. It consists of a number of fields where data for the<br />

application is entered. <strong>The</strong> fields are explained in Table B-1 on page 339.<br />

Table B-1 Fields in the HTML form, CTGTesterECI<br />

Field Name Purpose<br />

exception<br />

exception<br />

JSP<br />

<strong>CICS</strong> program name funcName Program on <strong>CICS</strong> to call<br />

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

Java<br />

classes<br />

Appendix B. Sample applications 339

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

Saved successfully!

Ooh no, something went wrong!