Skip to main content


developerWorks  >  WebSphere  >

Calling legacy COBOL/CICS programs with EGL and J2EE Connectors

developerWorks

Level: Introductory

Reginaldo Barosa (rbarosa@us.ibm.com), Senior Certified Application Development Specialist, IBM

01 Feb 2006

Register now or sign in using your IBM ID and password.

This tutorial teaches you how to invoke COBOL/CICS from a Web page, without writing any Java™ code. It uses J2EE Connectors, JavaServer Faces (JSF), and Enterprise Generation Language (EGL) to leverage the Managed Connection Factory in WebSphere® Application Server.

Objectives

  • Learn how to create a simple Web page using the combination of Java Server Faces (JSF) and Enterprise Generation Language (EGL) to invoke a COBOL/CICS program using J2EE Connectors (J2C).

  • Understand the EGL and JSF event-driven architecture

Prerequisites

This tutorial is written for CICS and COBOL programmers who need to access legacy applications from a Web interface. You don't need Java skills to take this tutorial.


System requirements

WebSphere Developer for zSeries V6 is required to code and test the example described here, but Rational Application Developer V6 could also be used if you will not execute the COBOL/CICS program.

Since the COBOL/CICS program used in this example accesses DB2 you will need to install DB2 in your workstation. You will need DB2 version 7.1 or later for this tutorial. Refer to the IBM documentation for this installation.



Duration

2 hours


Formats

html, pdf


Summary

This tutorial teaches how to create a simple Web page using the combination of Java Server Faces (JSF) and EGL to invoke a COBOL/CICS program using J2EE Connectors (J2C). You will see how this can be done without directly coding Java, but using EGL to generate the Java. The Java code created will run on WebSphere Application Server using a Managed Connection Factory.

We will deploy a simple Web application to WebSphere Application Server V5.1 using JavaServer Faces (JSF) technology. This tutorials describes in detail how to code, test, generate, and deploy a three-tier application consisting of a Web interface, business logic that executes on WebSphere Application Server, and a legacy COBOL/CICS server program that performs a DB2® query to access a database. All code will be tested and deployed in the workstation using the CICS Transaction Server and CICS Transaction Gateway (CTG) that are delivered with WebSphere Developer for zSeries. We will implement a simple program using EGL and JSF.

This tutorial employs animated examples to illustrate certain processes.

Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed