![]() |
![]() |
|
|
Using JAM Administration Utilities
The BEA WebLogic Java Adapter for Mainframe (JAM) product includes the following administration utilities for managing the Communications Resource Manager (CRM) and the JAM gateway:
The CRM Monitor and JAM Administration Servlet are used when the CRM is running on Windows or UNIX operating systems. If your CRM is running on an OS/390 UNIX operating system, you must enter administrative commands from the command line.
Action List
Before you use the JAM administration utilities, see the following action list and refer to the appropriate information sources.
Prerequisites
Before you use the JAM administration utilities, you should complete the following tasks.
Activating and De-Activating Links
You can activate and de-activate CRM links that have been defined in the JC_SNALINKS section of the jcrmgw.cfg file by executing one of the link commands from the command line. There are two commands used to activate and de-activate links:
You may also use Job Control Language (JCL) on an OS/390 Multiple Virtual Storage (MVS) platform to set the environment and invoke link commands. The following sections provide descriptions of the link commands and samples of JCL that may be used for your MVS operating system.
crmlkon Command
The crmlkon command starts one or more named CRM links.
crmlkon starts all of the CRM links named on the command line. This command is useful if one or more individual links failed to start when the CRM server booted. It can be used from any machine located on the same TCP/IP network as the machine running the CRM server. It can be used in a script and returns 0 if the command could be sent to the target CRM. It returns 1 if the command could not be sent to the target CRM.
Example of the crmlkon command line:
crmlkon -n<hostname:port> [-v -i] <linkname> ...
Descriptions of the command line options follow.
Command Line Options
The following table provides descriptions of the valid options for the crmlkon command:
Example
To start links, link2 and cicstest, owned by the CRM running on mach1 at port 5000:
crmlkon -n mach1:5000 link2 cicstest
Diagnostics
crmlkon only checks the syntax of the command. Use the CRM Monitor to determine if the link actually became active. Refer to Setting CRM Monitor Options for more information. If the command could not be successfully sent to the CRM, crmlkon prints an error message if in verbose mode and exits with error code 1. Upon successful completion, crmlkon exits with exit code 0.
Sample crmlkon Command JCL for OS/390 MVS Platform
This section provides an explanation of the SET commands and an example of JCL that can be used when you run the crmlkon command. The sample SET commands may not reflect the configuration of your system. You must customize the SET commands for your environment. Refer to your System Administrator for more information about your particular setup.
SET LINKCMD
Sets the crmlkon command line parameters. Refer to crmlkon Command for more information about the command line parameters.
SET OBJLIB
Indicates the name of the PDSE library where the crmlkon executable is installed.
SET DATA1
Indicates the name of the PDS library where the crmlkon required parameter file FMB was installed.
SET DATA
Indicates the dataset containing the ENVFILE.
SET ENVFILE
Indicates the name of the PDS member that contains the environment variables for the CRMLKON. A sample member, ENV, is delivered with your product.
SET SIZE
Defines the region size for the running crmlkon task.
SET ENV
Indicates the ENVFILE DD name. This value is pre-set.
SET CEE
Specifies the high-level qualifier for the LE runtime library. CEE should be set to the prefix of the IBM Language Environment data sets. Language Environment is required to run crmlkon.
SET CBC
Specifies the high-level qualifier for the C/C++ runtime library. CBC should be set to the prefix of the IBM C++ data sets.
Note: Uncomment the SET CBC line and tailor the STEPLIB concatenation if these libraries are not in your system link library concatenation.
Listing 6-1 Sample crmlkon,jcl for crmlkon Command
//*****************************************************************
//* THIS JOB IS USED FOR THE STAND-ALONE LINK COMMAND *
//* TO ACTIVATE A REMOTE LINK. SEE USER GUIDE FOR MORE INFO *
//* *
//* @(#)$Id: crmlkon.jcl,v 1.10 2001/05/07 23:41:27 crount Exp $
//* Copyright (c)2000 BEA Systems, Inc., all rights reserved. *
//*****************************************************************
//* YOU MUST SET THE ENVIRONMENT VARIABLES NEEDED BY CRMLKON *
//*****************************************************************
//*****************************************************************
//* LINKCMD INDICATES THE DISTRIBUTED SNACRM ADDRESS AND LINKNAME*
//* OBJLIB IS THE LOAD LIBRARY CONTAINING THE EAM PROGRAM OBJECTS*
//* RUNOPTS SETS ANY DESIRED LE RUNTIME OPTIONS *
//* DATA IS THE DATASET THAT CONTAINS THE ENVIRONMENT VARIABLES *
//* ENVFILE NAMES THE MEMBER THAT CONTAINS THE ENVIRONMENT VARS *
//* SIZE SETS THE REGION SIZE FOR THE SNACRM PROCESS *
//* TAILOR YOUR JCL FOR THE BELOW IF THESE LIBRARIES ARE NOT *
//* IN YOUR SYSTEM LINK LOAD LIBRARY CONCATENATION *
//* CEE IS THE HLQ FOR THE LE RUNTIME LIBRARY *
//* CBC IS THE HLQ FOR THE C/C++ RUNTIME LIBRARY *
//*****************************************************************
// SET LINKCMD='-n<host name>:<port> <linkname>'
// SET OBJLIB=
// SET RUNOPTS=
// SET DATA=
// SET ENVFILE=ENV
// SET SIZE=1M
//SETENV='ENVAR("_CEE_ENVFILE=DD:ENV")'
//*SETCEE=CEE,CBC=CBC
//CRMLKONEXECPGM=CRMLKON,REGION=&SIZE,
// PARM='POSIX(ON) &ENV &RUNOPTS/&LINKCMD'
//STEPLIBDDDSN=&OBJLIB,DISP=SHR
//*DDDSN=&CEE..SCEERUN,DISP=SHR
//*DDDSN=&CBC..SCLBDLL,DISP=SHR
//ENVDDDSN=&DATA(&ENVFILE),DISP=SHR
//MSGFILE DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//
crmlkoff Command
The crmlkoff command stops one or more named CRM links.
crmlkoff stops all of the CRM links named on the command line. This is useful if one or more individual links need to be stopped after the CRM server booted. It can be used from any machine located on the same TCP/IP network as the machine running the CRM server. It can be used in a script and returns 0 if the command could be sent to the target CRM. It returns 1 if the command could not be sent to the target CRM.
Example of the crmlkoff command line:
crmlkoff -n<hostname:port> [-v -i] <linkname> ...
Command Line Options
The following table provides descriptions of the valid options for the crmlkoff command:
Example
To stop links link1 and cicstest owned by the CRM running on mach at port 5000:
crmlkoff -n mach:5000 link1 cicstest
Diagnostics
crmlkoff only checks the syntax of the command. Use the CRM Monitor to determine if the link actually became active. Refer to Setting CRM Monitor Options for more information. If the command could not be successfully sent to the CRM, crmlkoff prints an error message if in verbose mode and exits with error code 1. Upon successful completion, crmlkoff exits with exit code 0.
Sample crmlkoff Command JCL for OS/390 MVS Platform
This section provides an explanation of the SET commands and an example of JCL that can be used when you run the crmlkoff command. The sample SET commands may not reflect the configuration of your system. You must customize the SET commands for your environment. Refer to your System Administrator for more information about your particular setup.
SET LINKCMD
Sets the crmlkoff command line parameters. Refer to Sample crmlkon Command JCL for OS/390 MVS Platform for more information about the command line parameters.
SET OBJLIB
Indicates the name of the PDSE library where the crmlkoff executable is installed.
SET DATA
Indicates the dataset containing the ENVFILE.
SET ENVFILE
Indicates the name of the PDS member that contains the environment variables for the crmlkoff. A sample member, ENV, is delivered with your product.
SET SIZE
Defines the region size for the running crmlkoff task.
SET ENV
Indicates the ENVFILE DD name.
SET CEE
Specifies the high-level qualifier for the Language Environment (LE) runtime library. CEE should be set to the prefix of the IBM LE data sets. Language Environment is required to run crmlkoff.
SET CBC
Specifies the high-level qualifier for the C/C++ runtime library. CBC should be set to the prefix of the IBM C++ data sets.
Note: Uncomment the SET CBC line and tailor the STEPLIB concatenation if these libraries are not in your system link library concatenation.
Listing 6-2 Sample crmlkoff.jcl for crmlkoff Command
//*****************************************************************
//* THIS JOB IS USED FOR THE STAND-ALONE LINK COMMAND *
//* TO DEACTIVATE A REMOTE LINK. SEE USER GUIDE FOR MORE INFO *
//* *
//* @(#)$Id: crmlkoff.jcl,v 1.10 2001/05/07 23:41:27 crount Exp $
//* Copyright (c)2000 BEA Systems, Inc., all rights reserved. *
//*****************************************************************
//* YOU MUST SET THE ENVIRONMENT VARIABLES NEEDED BY CRMLKOFF *
//*****************************************************************
//*****************************************************************
//* LINKCMD INDICATES THE DISTRIBUTED SNACRM ADDRESS AND LINKNAME*
//* OBJLIB IS THE LOAD LIBRARY CONTAINING THE EAM PROGRAM OBJECTS*
//* RUNOPTS SETS ANY DESIRED LE RUNTIME OPTIONS *
//* DATA IS THE DATASET THAT CONTAINS THE ENVIRONMENT VARIABLES *
//* ENVFILE NAMES THE MEMBER THAT CONTAINS THE ENVIRONMENT VARS *
//* SIZE SETS THE REGION SIZE FOR THE SNACRM PROCESS *
//* TAILOR YOUR JCL FOR THE BELOW IF THESE LIBRARIES ARE NOT *
//* IN YOUR SYSTEM LINK LOAD LIBRARY CONCATENATION *
//* CEE IS THE HLQ FOR THE LE RUNTIME LIBRARY *
//* CBC IS THE HLQ FOR THE C/C++ RUNTIME LIBRARY *
//*****************************************************************
// SET LINKCMD='-n<host name>:<port> <linkname>'
// SET OBJLIB=
// SET RUNOPTS=
// SET DATA=
// SET ENVFILE=ENV
// SET SIZE=1M
//SETENV='ENVAR("_CEE_ENVFILE=DD:ENV")'
//*SETCEE=CEE,CBC=CBC
//CRMLKOFFEXECPGM=CRMLKOFF,REGION=&SIZE,
// PARM='POSIX(ON) &ENV &RUNOPTS/&LINKCMD'
//STEPLIBDDDSN=&OBJLIB,DISP=SHR
//*DDDSN=&CEE..SCEERUN,DISP=SHR
//*DDDSN=&CBC..SCLBDLL,DISP=SHR
//ENVDDDSN=&DATA(&ENVFILE),DISP=SHR
//MSGFILE DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//
Using the CRM Monitor
The CRM Monitor is a Java application that allows you to connect to and monitor the CRM server through a graphical user interface (GUI). You can use the CRM Monitor to monitor link status and activity and start or stop diagnostic tracing of the CRM server. The CRM Monitor makes a network connection to the remote CRM server through a TCP/IP network connection. The CRM Monitor application file is the crmmon.jar file.
Launching the CRM Monitor from the Windows NT Desktop
If the CRM Monitor is installed on Windows NT, a short cut is created in the Start menu of the Desktop when you install JAM.
To launch the CRM Monitor from the Desktop:
Launching the CRM Monitor from the Command Line
The CRM Monitor can also be started from the command line on UNIX and Windows platforms.
To launch the CRM Monitor from the command line:
java -jar crmmon.jar
Setting CRM Monitor Options
Figure 6-1 shows an example of the CRM Monitor display.
Figure 6-1 CRM Monitor Display
After you launch the CRM Monitor, use the following instructions to set CRM Monitor options:
//host:port
where host explicitly specifies the CRM host machine and port specifies the port number of the CRM on the CRM host machine.
This value may only be entered once per started instance of a CRM Monitor.
Note: The CRM Monitor does not show trace data. This data is captured in a file under the APPDIR directory of the CRM server (APPDIR is the variable name associated with the CRM directory). Please contact BEA Customer Support for help in locating the trace file(s) and interpreting them.
Note: Trace options for the CRM and APPC Stack API trace options may also be set from the CRM command. Refer to the CRM Command section for more information about trace options.
Starting and Stopping the Gateway with the JAM Administration Servlet
Figure 6-2 shows an example of the JAM Administration Servlet window:
Figure 6-2 JAM Administration Servlet Window
The JAM Administration Servlet is packaged in the jam.ear file from the JAM distribution. The servlet is available on any system where the JamAdmin Web application is deployed from the jam.ear file. Launching the JAM Administration Servlet To display the JAM Administration Servlet in a browser window, enter the following URL: In this example, <host> and <port> specify the WebLogic listen address. Setting JAM Administration Servlet Options You may set several boot options to be used when the JAM gateway is started from the JAM Administration Servlet window. These options correspond to options used with the GWBOOT command. For more detailed information about the GWBOOT command options, refer to the Adding the JAM Startup Class to the WebLogic Server Configuration File section. The following options may be set in the JAM Administration Servlet window before you start the JCRMGW gateway: Note: When the JAM Administration Servlet is started, the options selected, Trace on, Remote CRM, and Default user, reflect the current configuration as established by either the WebLogic Server Console or this servlet. Using JAM Administration Servlet Start and Stop Commands The following command buttons on the JAM Administration Servlet window allow you to start or stop JAM:
http://<host>:<port>/jam/JamAdmin
What Do I Do Next?
In the normal course of operations your JAM system may occasionally need to be shut down for planned outages of your remote environment. Refer to the next section, Shutting Down the System for Planned Outages, for more information. Otherwise, you can begin using JAM for workflow processing or generating Java source code. If you want to perform workflow processing between Java applications and the mainframe, refer to the BEA WebLogic Java Adapter for Mainframe Workflow Processing Guide. If you want to develop Java applications by generating Java source code from COBOL copybooks, refer to the BEA WebLogic Java Adapter for Mainframe Programming Guide.
![]() |
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|