tconfig.html
Configuring the environments
The EJB CICS Sample Application
The EJB CICS sample application demonstrates how you can use enterprise beans to make existing, CICS-controlled, information available to Web users. The sample application extracts customer information from data tables and returns
it to the user of a Web browser.
The sample works like this:
- The user starts the application from a Web browser. A form is displayed.
- The form requests a customer number from the user. When the user has entered
a customer number and pressed the SUBMIT button, the servlet is invoked
and sends the number to the enterprise bean.
- The enterprise bean uses the CCF interface of the CICS connector for CICS
TS to link to the CICS server programs, passing the customer number.
- The server programs use the specified number as the key to the DB2 records
for this customer. They retrieve the customer's details from the DB2 data
tables and return the account number, balance, and address to the enterprise
bean.
- The enterprise bean returns the customer's details to the servlet, which
uses Java Server Pages to display them on the user's browser. If the customer
number is not valid, the browser displays an error page.
EJB CICS Application Sample components
The sample consists of:
- An HTML form.
- A Java servlet, plus Java Server Pages, running on a Web server.
- An enterprise bean running on a CICS EJB server.
- Two DB2 data tables containing customer information. One contains account
information such as current balance; the other contains name and address
details.
- Two CICS programs, written in COBOL. The V2ACTDB program retrieves
information from the accounts data table. The V2CSTDB program retrieves
information from the name and address data table.
The task steps in this section describe the set up of the platforms required to develop and the EJB CICS Application Sample for yourself.