bea.com | products | dev2dev | support | askBEA
 Download Docs 
 Search 

Samples Guide

 Previous Next Contents Index View as PDF  

BEA WebLogic Java Adapter for Mainframe Samples Overview

BEA WebLogic Java Adapter for Mainframe (WebLogic JAM) is designed to integrate applications running in a WebLogic Server environment with applications running in a mainframe environment. WebLogic JAM includes complete samples that are installed as part of the product installation. These samples are provided to demonstrate how WebLogic JAM integrates WebLogic and mainframe applications. This guide explains how to run the samples that are included with WebLogic JAM.

The following topics are described in this section:

 


About the WebLogic JAM Samples

The samples included with WebLogic JAM allow you to see different capabilities of WebLogic JAM. The samples are much less complex than any standard production application and are not intended to be guides to application programming.

Samples have been included as a part of the WebLogic JAM software to:

Samples are designed to run "out of the box" with minimal modification. Most tasks are preconfigured or configured during installation by the installer program. You are required to only enter configuration that applies to your specific environment.

Two types of samples are installed when you install WebLogic JAM:

Verification Samples

WebLogic JAM provides two installation verification samples, one for an IMS region and one for a CICS region. These samples allow you to verify the success of the WebLogic JAM installation as well as demonstrate WebLogic JAM integration in a WebLogic and mainframe environment. These samples are described in the BEA WebLogic Java Adapter for Mainframe Installation Guide.

Programming Samples

The samples that are categorized as programming samples demonstrate how WebLogic JAM can be used with your system.

 


About the Samples User

The samples are provided to demonstrate various capabilities and functions of WebLogic JAM. Samples users typically fulfill one of the following roles:

For a description of user roles, see the BEA WebLogic Java Adapter for Mainframe Home Page.

 


How to Use the Samples

While the WebLogic JAM samples contain precompiled source for the Java portion of the sample, you may choose to generate and compile source. Depending on your skill level, experience, and time-constraints, you may choose to work with the Java portion of the samples in the following ways:

In general, each of the samples include:

Java Sample Code

The philosophy of keeping the samples simple is demonstrated in the Java segments of the samples. For samples with Java clients and mainframe servers, stand-alone client classes are used instead of using client EJBs because the standalone clients are simpler to code, understand, deploy, and include in your applications. The servlets that can be generated by the eGen Application Code Generator are not used because you may have difficulty enhancing them to improve their presentation or functionality.

Mainframe Sample Code

Mainframe sample programs are minimal, but are sophisticated enough to demonstrate the features of WebLogic JAM. Mainframe samples are designed to take advantage of the "least common denominator" of IMS or CICS features that you might have available. For example, some of the IMS samples interact with the installation verification transaction, IVTNO, that is shipped with IMS. CICS samples use Temporary Storage (TS) queues and VSAM files to imitate the behavior of databases, rather than assume you have a database installed.

Note: JCL to compile the mainframe sample programs is included as examples to provide completeness. The sample JCL may not conform to your standards or installations. It may need to be modified or replaced to meet your needs.

Program definitions and other configuration for your CICS or IMS region may require coordination with your IMS or CICS system programmer.

Preconfigured WebLogic Server Domains

The WebLogic JAM installation includes a directory named config. This config directory contains subdirectories for two preconfigured WebLogic Server domains. These WebLogic Server domains are:

 


Before You Run the Samples

Before you run the samples, the following tasks must be completed:

  1. Install WebLogic Server.

    For information about installing WebLogic Server, see the BEA WebLogic Server documentation.

  2. Install WebLogic JAM.

    For information about installing WebLogic JAM, see the BEA WebLogic Java Adapter for Mainframe Installation Guide.

  3. Define the Logical Unit (LU) for the CRM and vary it active.

    For information about defining the Logical Unit for the CRM, see the BEA WebLogic Java Adapter for Mainframe Configuration and Administration Guide.

  4. If using IMS, verify that the APPC communication to IMS is active.

    For information about APPC communication with WebLogic JAM, see the BEA WebLogic Java Adapter for Mainframe Configuration and Administration Guide.

  5. If using CICS, the connection must be defined to the CICS region.

    For information about CICS connection when using WebLogic JAM, see the BEA WebLogic Java Adapter for Mainframe Configuration and Administration Guide.

After these tasks have been completed, determine which of the samples you want to run and refer to the corresponding section:

 

Back to Top Previous Next