My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
LegStarJCAConnectors  
LegStar JCA Connectors
Featured
Updated Oct 30, 2011 by fady.mou...@gmail.com

Introduction

The LegStar JCA Connectors are standard resource adapters for JEE Application Servers.

These connectors are meant to be used with the LegStar product. LegStar provides both the COBOL to Java Transformers and the underlying [transports to z/OS.

The first JCA Connector released is the LegStar JCA Socket Connector described in this document.

In the future, there will be one JCA Connector for each of the LegStar Transports and other extension transports.

LegStar JCA Socket Connector

This connector uses socket connectivity to the mainframe. It targets IBM CICS programs. These programs can be commarea or container driven.

This connector relies on the Application Server connection pooling capabilities and therefore it does not use the LegStar connection pooling mechanism.

It provides Local Transaction support. Transactions can be explicitly handled using component-managed local transactions or container-managed. The LegStar JCA Connector does not support XA.

Finally it integrates with the Application Server security mechanism so you can, for instance, map groups of authenticated users to a single mainframe User ID (RACF).

Installation

Pre-requisites

You can install the LegStar JCA Socket Connector in any JEE-compliant application server.

You don't need to install LegStar itself on the java side if you only plan to run the samples provided. If however, you want to integrate your own CICS programs, you will need the LegStar development tools. In this case, refer to the LegStar users guide for instructions on installing and using LegStar.

Install LegStar Socket Transport in CICS

You will need the LegStar Socket Transport modules for CICS to be installed.

Please follow instructions in this document in order to get the LegStar z/OS distribution installed in CICS.

Then setup the configuration parameters for the Socket Transport.

In adddition to installing the LegStar modules for CICS in the target CICS region, you will need to compile and install the COBOL programs provided in the connectors distribution if you want to run the samples (look for the samples/cobol folder). These samples use the IBM provided IVP sample file "FILEA".

Install LegStar JCA Socket Connector in the Application Server

These are generic instructions for any JEE application server. We have a more precise document if you plan on deploying to JBoss Application Server.

Once you download the LegStar JCA connectors distribution, you can unzip it to a location of your choice.

The distrubution contains a resource adapter archive (rar) file. You use an Application Server specific mechanism to deploy it.

There are 3 important parameters that you will need to setup (see ra.xml for details):

ServerName The IP Address of the z/OS TCP stack
PortNumber The port you set up for the TCP/IP listener in CICS
HostCharset The character set used by your z/OS system (default is IBM01140)

In addition, you can optionally specify:

UserName The mainframe user ID (RACF) to use for authentication (Note that alternatively, mainframe credentials can be specified at runtime or using Application Server mapping capabilities)
Password The mainframe password (RACF) to use for authentication
HostConnectTimeout Maximum time to wait for a connection with the mainframe (milliseconds). Default is 1000.
HostReceiveTimeout Maximum time to wait for a reply to a request to the mainframe (milliseconds). Default is 5000.
HostTraceMode When set to true, LegStar mainframe programs will produce verbose traces (not recommended in production)

Samples provided

Once you have installed the JCA Connector, you can use one of the distributed samples, available both for JEE5 and JEE6:

legstar.connector.it.jeex.web A simple servlet using the connector directly. To be used as IVP.
legstar.connector.it.jeex.ejb An EJB which uses the connector to perform Create/Read/Delete operations showcases container-managed transactions
legstar.connector.it.jeex.ejb.web A servlet that provides a simple UI for legstar.connector.it.jeex.ejb
legstar.connector.it.jeex.ear Bundles legstar.connector.it.jeex.ejb.web and legstar.connector.it.jeex.ejb
legstar.connector.it.jeex.web.tran A servlet that provides a UI and Create/Read/Delete operations. It showcases component-managed transactions and security


Sign in to add a comment
Powered by Google Project Hosting