This tutorial teaches you how to use the J2C Java™ bean wizard to connect to a CICS® ECI server.
This tutorial might require some optionally installable
components. If you encounter errors or cannot find user interface
options when you run the sample, ensure that you installed the appropriate
optional components:
- IBM® WebSphere® Application Server, V7.0, V8.0, or V8.5.
To use this sample, you must have an application server installed
and configured. To verify that a server runtime environment is available,
click , expand Server, and then click Installed Runtimes.
You can use this pane to add, remove, or edit installed server runtime
definitions. You can also download and install support for a new server.
This tutorial is divided into several lessons that must be completed
in sequence for the tutorial to work properly. While completing the
lessons, you will:
- Use the J2C Java bean wizard
to create a J2C application that interfaces with a CICS transaction using an External Call Interface
(ECI).
- Create a Java method, getCustomer, which accepts a customer number and returns
the customer's information .
- Create a JSP to deploy the application on a WebSphere® application server.
- Create a Faces JSP to deploy the application on a WebSphere application server.
- Create a command bean, which is an alternative way to deploy the
J2C application.
Learning objectivesIn this tutorial,
you will:
- Use the J2C Java bean wizard
to create a J2C application that interfaces with a CICS transaction using an External Call Interface
(ECI).
- Create a Java method, getCustomer, which accepts a customer number and returns
the customer's information.
- Create a JSP to deploy the application on a WebSphere application server.
- Create a Faces JSP to deploy the application on a WebSphere application server.
- Create a command bean, which is an alternative way to deploy the
J2C application.
Time required
This tutorial should take
approximately 30 minutes to finish. If you explore other concepts
related to this tutorial, it could take longer to complete.
Skill level
Experienced
Audience
This tutorial is intended for
users who are familiar with Enterprise Information systems (EIS) and CICS ECI in particular.
To perform the tasks demonstrated in this tutorial,
you need to have the following tools and components installed:
- IBM® WebSphere® Application Server, version V7.0,
V8.0, or V8.5.
- J2EE Connector (J2C) tools installed
- Connection to a CICS ECI server: In this tutorial, your application interacts with
a CICS program on a server.
Specifically, you need to set up a CICS transaction gateway on a machine to access the server.
You also need to perform some setup work on the CICS server machine, where you want the CICS to run. These steps are not
covered.
- A copy of the COBOL file taderc99.cbl. You may locate this
file in your product installation directory: \rad\eclipse\plugins\com.ibm.j2c.cheatsheet.content_7.0.0\Samples\CICS\taderc99.
If you wish to store it locally, you can copy the code from here: taderc99.cbl
- A clean workspace.
Prerequisites
In order to complete this
tutorial end to end, you should be familiar with:
- J2EE and Java programming
- COBOL programming language
- CICS ECI server technology