Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Calling legacy COBOL/CICS programs with EGL and J2EE Connectors

Reginaldo Barosa (rbarosa@us.ibm.com), Senior Certified Application Development Specialist, EMC
Author photo
Reginaldo W. Barosa is an IBM Senior Certified Application Development Specialist. He provides sales support, helping customers with Application Transformation solutions and development tools such as WebSphere Developer for zSeries. Before joining IBM US five years ago, Reginaldo worked for 27 years in IBM Brazil. He has co-authored IBM Redbooks and has written two books, as well as other articles for IBM developerWorks. He holds a degree in Electrical Engineering from Instituto Mauà de Tecnologia, São Paulo, Brazil. You can reach Reginaldo at rbarosa@us.ibm.com
(An IBM developerWorks Professional Author)

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

Date:  01 Feb 2006
Level:  Intermediate PDF:  A4 and Letter (832 KB | 35 pages)Get Adobe® Reader®

Activity:  9629 views
Comments:  

Before you start

This section tells you what to expect from this tutorial, and how to get the most out of it.

About this tutorial

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 writing Java code, but using EGL to generate the Java code. 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.

If you wish, you can download the sample program and load it into WebSphere Developer instead of starting from scratch.

This article makes use of animated examples. When you see the symbol animation icon, double-click on it, and an animation sequence will demonstrate a specific development task in action.

Objectives

In this tutorial, you learn how to connect COBOL and CICs programs to a Web application, using EGL and JSF. The EGL and JSF architecture is an event-driven model in which each request is handled by a specific page handler. The page handler can act on information submitted with the request, or forward it to another handler for processing. This event-driven model greatly simplifies the building of Web applications. You'll learn about this model and how to use EGL to implement it, which means you won't need Java skills, since all of the Java code will be generated from the EGL code.

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.

1 of 9 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=WebSphere
ArticleID=102159
TutorialTitle=Calling legacy COBOL/CICS programs with EGL and J2EE Connectors
publish-date=02012006
author1-email=rbarosa@us.ibm.com
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.