![]() |
![]() |
|
|
Defining the JAM Gateway Configuration
BEA WebLogic Java Adapter for Mainframe (JAM) configuration is defined by the JAM configuration file, jcrmgw.cfg. The JAM gateway uses the jcrmgw.cfg file to control much of its operation. The jcrmgw.cfg configuration file defines the Communications Resource Manager (CRM), stack, links, and local and remote services that comprise the gateway environment.
The topics in this section describe the JAM gateway configuration file and how to create and verify your own configuration file.
Action List
Before you create your JAM gateway configuration file, see the following action list and refer to the appropriate information sources.
Prerequisites
Before you create your JAM gateway configuration file, you should complete the following tasks.
About the JAM Gateway Configuration File
A sample jcrmgw.cfg file is located in the JAM examples/samples.jar file. Edit this file to meet your configuration needs or create your own configuration file with any text editor. Refer to the following sections for information about each configuration file section and associated parameters.
Example of a JAM Gateway Configuration File
The following example illustrates a basic jcrmgw.cfg file.
Listing 2-1 Sample jcrmgw.cfg Configuration File
*JC_REMOTE_DOMAINS
#
CICS13 DOMAINID="13"
#
*JC_SNACRM
#
CRMAN SNACRMADDR="//dalnt66:8650"
GROUP="G1"
*JC_SNASTACKS
#
OS390 STACKTYPE="VTM28"
LOCALLU="LUNT66B"
#
*JC_SNALINKS
#
CICS RLUNAME="C410XB01"
RDOM="CICS13"
MODENAME="SMSNA100"
MAXSESS=8
MINWIN=6
#
*JC_LOCAL_SERVICES
#
TraderHome RNAME="DPL1SVR"
#
*JC_REMOTE_SERVICES
DPLINIT RDOM="CICS13"
RNAME="PRIM:DPLINIT"
TRANTIME=10000
TOUPPER RDOM="CICS13"
RNAME="TOUPDPLS"
TRANTIME=10000
demoRead RDOM="CICS13"
RNAME="DPLDEMOR"
TRANTIME=10000
demoUpdate RDOM="CICS13"
RNAME="DPLDEMOU"
TRANTIME=10000
demoCreate RDOM="CICS13"
RNAME="DPLDEMOC"
TRANTIME=10000
demoDelete RDOM="CICS13"
RNAME="DPLEMOD"
TRANTIME=10000
imsInsert RDOM="CICS13"
FUNCTION=APPC
RNAME="DPLDEMOC"
Format of the JAM Gateway Configuration File
The general format of the jcrmgw.cfg configuration file is as follows:
*JC_REMOTE_SERVICES
DPLINIT RDOM="CICS410"
RNAME="PRIM:DPLINIT"
TRANTIME=10000
TOUPPER RDOM="CICS410"
RNAME="TOUPDPLS"
TRANTIME=10000
JC_REMOTE_DOMAINS Section
This section of the jcrmgw.cfg file provides an alias for associating mainframe applications with services and links. A label identifying the domain must precede the first keyword in the set of keywords defining the domain.
Listing 2-2 shows an example of the JC_REMOTE_DOMAINS section. CICS410 is the label for the domain.
Listing 2-2 Example of JC_REMOTE_DOMAINS Section
*JC_REMOTE_DOMAINS
#
CICS410 DOMAINID="410"
The following table provides descriptions of valid keywords for the JC_REMOTE_DOMAINS section:
JC_SNACRM Section
This section of the jcrmgw.cfg file identifies the CRM that this gateway talks to. There is one CRM for each JAM gateway. A label identifying the CRM must precede the first keyword.
Listing 2-3 shows an example of the JC_SNACRM section. CRMAN is the label for the CRM.
Listing 2-3 Example of JC_SNACRM Section
*JC_SNACRM
#
CRMAN SNACRMADDR="//dalnt66:8650"
GROUP="G1"
The following table provides descriptions of valid keywords for the JC_SNACRM section:
JC_SNASTACKS Section
This section of the jcrmgw.cfg file identifies the Local LU used for the CRM along with the stack identifier for the stack library to be used. Only one local LU and one stack can be specified for a CRM. A label identifying the Local LU and stack must precede the first keyword in the set of keywords defining the Local LU and stack.
Listing 2-4 shows an example of the JC_SNASTACKS section. OS390ST is the label for the Local LU and stack.
Listing 2-4 Example of JC_SNASTACKS Section
*JC_SNASTACKS
#
OS390ST STACKTYPE="VTM28"
LOCALLU="BEAAPPL1"
The following table provides descriptions of valid keywords for the JC_SNASTACKS section:
JC_SNALINKS Section
This section of the jcrmgw.cfg file identifies partner mainframe application regions. Multiple links for a single CRM are supported. A label identifying the link must precede the first keyword in the set of keywords defining the link.
Listing 2-5 shows an example of the JC_SNALINKS section. C41XB01 is the label for the link.
Listing 2-5 Example of JC_SNALINKS Section
*JC_SNALINKS
#
C41XB01 RLUNAME="C410XB01"
RDOM="CICS410"
MODENAME="SMSNA100"
MAXSESS=8
MINWIN=6
The following table provides descriptions of valid keywords for the JC_SNALINKS section:
JC_LOCAL_SERVICES Section
This section of the jcrmgw.cfg file maps incoming mainframe program names to a Home interface for an EJB that will service the request. A label identifying the Home interface must precede the first keyword in the set of keywords defining the Home interface.
Listing 2-6 shows an example of the JC_LOCAL_SERVICES section. DPL1SVR is the name of the program that was invoked from the mainframe and StatelessSessions.TraderHome is the name of the Home interface that will be used to invoke the EJB that services this request.
Listing 2-6 Example of JC_LOCAL_SERVICES Section
*JC_LOCAL_SERVICES
#
StatelessSessions.TraderHome RNAME="DPL1SVR"
The following table provides descriptions of valid keywords for the JC_LOCAL_SERVICES section:
JC_REMOTE_SERVICES Section
This section of the jcrmgw.cfg file maps remote mainframe program names to method names that can be used by a local application to invoke the remote request. These remote mainframe program names and associated method names are called remote services. A label identifying the remote service must precede the first keyword in the set of keywords defining the remote service.
Listing 2-7 shows an example of the JC_REMOTE_SERVICES section. DPLINIT and TOUPPER are the labels for the remote services.
Listing 2-7 Example of JC_REMOTE_SERVICES Section
*JC_REMOTE_SERVICES
DPLINIT RDOM="CICS410"
RNAME="PRIM:DPLINIT"
TRANTIME=10000
TOUPPER RDOM="CICS410"
RNAME="TOUPDPLS"
TRANTIME=10000
The following table provides descriptions of valid keywords for the JC_REMOTE_SERVICES section:
Creating a Configuration File
To create a JAM gateway configuration file for your environment, use any text editor and perform one of the following procedures:
Or,
Note: Refer to the previous section, About the JAM Gateway Configuration File for detailed information about the JAM gateway configuration file parameters.
Verifying the Configuration File with the Configuration Checker Utility
After you create or edit the jcrmgw.cfg file, you should verify the contents by invoking the gateway's Configuration Checker utility directly from a command line. This verification process allows you to discover and correct any errors prior to starting the gateway.
jcrmConfigurator is a Java class that is used to check the jcrmgw.cfg file. It is recommended that you place the command into a script file and run it with standard output redirected to a file. The resulting output is either diagnostic messages indicating syntax errors in the configuration file, or a formatted listing of the definitions as they are used by the gateway. There are no options for the jcrmConfigurator class and the only file that can be processed is the jcrmgw.cfg file in the current directory.
To run the jcrmConfigurator class:
set classpath=%classpath%;D:\jam42\lib\jam.jar
java com.bea.sna.jcrmgw.jcrmConfigurator
What Do I Do Next?
After you create a JAM configuration file for your environment and check it, you can review an example of a mainframe configuration. Refer to Putting It All Together for more information. If you do not wish to review the example, you are ready to learn how to run the CRM so that you can deploy your configuration. Refer to Using the CRM Administration Commands for more information about starting the CRM.
![]() |
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|