![]() |
![]() |
||
|
Configuring the environment for eLink Adapter for MQSeries consists of the following basic tasks:
The eLink Adapter for MQSeries consists of three TUXEDO servers: an eLink to MQSeries server (ELINKMQO), an MQSeries to eLink server (ELINKMQI), and a server for handling The following sections describe how to identify each of the servers in the TUXEDO UBBCONFIG file, and how to set up the configuration file required by the eLink Adapter for each of these servers.
ELINKMQO routes all requests for MQSeries services from TUXEDO clients. It interacts with MQSeries via the Message Queue Interface (MQI) by enqueuing and dequeuing service requests and responses. The MQI is a common application programming interface that all MQSeries applications implement.
You define the ELINKMQO server in the SERVERS section of the TUXEDO UBBCONFIG file as follows:
Configuring the TUXEDO Servers
tpenqueue()
and tpdequeue()
requests (TMQUEUE_MQM). You must identify each of these servers in the TUXEDO UBBCONFIG file. In addition, the eLink Adapter requires that certain parameters be set for each server. You define these parameters in a server configuration file. A sample configuration file for each server is provided on the eLink Adapter for MQSeries installation CD-ROM. You can use these samples as a base and insert the specific information required for your environment.
Configuring the eLink to MQSeries Server (ELINKMQO)
Listing 3-1
Syntax for ELINKMQO Server Definition in UBBCONFIG
*SERVER
ELINKMQO SRVGRP="identifier" SRVID="number"
CLOPT="-- -C configuration_file_name"
For information about the SRVGRP, SRVID, and CLOPT parameter syntax and definitions, refer to the BEA TUXEDO Reference Manual.
eLink to MQSeries configfile
"
A configuration file provides a list of services and their associated parameters to the server at startup. The sample configuration file included on the installation CD-ROM for ELINKMQO is called ELINKMQO.CFG. Refer to "Creating the Server Configuration Files" for an explanation of the parameters you need to define.
You must also define FML32 fields for ELINKMQO in a field definition table. BEA eLink Platform uses FML functions to manipulate fielded buffers related to errors. Refer to the BEA TUXEDO FML Programmer's Guide for more information on FML32.
The syntax for the field definition table for ELINKMQO is as follows:
Listing 3-2 Syntax for field definition table for ELINKMQO
# name number type flags comments
ELINK_ADAPTER_ERR `n
' string - -
ELINK_ADAPTER_ERR_CODE `n
' string - -
ELINK_APP_ERR `n
' string - -
The FML32 fields you need to define are as follows.
A sample field definition table (elinkadk.fml) is included on the installation CD-ROM. You can edit this file to assign field ID numbers that are appropriate for your installation.
Note: Make sure the field ID numbers you assign do not conflict with any other field ID numbers you may have for other applications.
When you have created the field definition table, copy it to the directory defined in the environment variable FLDTBLDIR32 and update the environment variable to include this file (elinkadk.fml). Refer to the BEA TUXEDO Reference Manual for more information on environment variables.
ELINKMQI forwards messages requested from MQSeries applications to TUXEDO services. The application queues a request to a designated queue that is monitored by ELINKMQI. The requested service is specified in the message descriptor. Like ELINKMQO, ELINKMQI must perform data and semantic transformations on the data stored on a queue before delivering it to a service. It must do the same to replies.
You define the ELINKMQI server in the SERVERS section of the TUXEDO UBBCONFIG file as follows:
Listing 3-3 Syntax for ELINKMQI Definition in UBBCONFIG
*SERVER
ELINKMQI="identifier" SRVID="number" REPLYQ=N
CLOPT="-- -C configuration_file_name
For information about the SRVGRP, SRVID, REPLYQ, and CLOPT parameter syntax and definitions, refer to the BEA TUXEDO Reference Manual.
MQSeries to eLink configfile
"
A configuration file provides a list of services and their associated parameters to the server at startup. The sample configuration file included on the installation CD-ROM for ELINKMQI is called ELINKMQI.CFG. Refer to "Creating the Server Configuration Files" for an explanation of the parameters you need to define.
TMQUEUE_MQM processes the tpenqueue()
and tpdequeue()
requests from TUXEDO applications that need to send or retrieve data to or from an MQSeries queue.
You define the TMQUEUE_MQM server in the SERVERS section of the TUXEDO UBBCONFIG file as follows:
Listing 3-4 Syntax for TMQUEUE_MQM Definition in UBBCONFIG
*SERVER
TMQUEUE_MQM="identifier" SRVID="number" REPLYQ=N
CLOPT="-- -C configuration_file_name
For information about the SRVGRP, SRVID, REPLYQ, and CLOPT parameter syntax and definitions, refer to the BEA TUXEDO Reference Manual.
enqueue/dequeue configfile
"
A configuration file provides a list of services and their associated parameters to the server at startup. The sample configuration file included on the installation CD-ROM for TMQUEUE-MQM is called TMQUEUE-MQM.CFG. Refer to "Creating the Server Configuration Files" for an explanation of the parameters you need to define.
You must create a configuration file for each of the three eLink Adapter for MQSeries servers. The installation CD-ROM contains sample files you can use as a base for creating your own configuration files. You can substitute the parameter settings in the sample files with the settings required for your own environment.
The ELINKMQO.CFG file controls the operation of the eLink to MQSeries server (ELINKMQO). Following are the sections of the ELINKMQO configuration file and the parameters you can define for each section. A sample configuration file follows the descriptions.
Note: ELINKMQO.CFG is a generic filename. You can name this file anything you choose, but the filename must match the -C configuration_file_name parameter you specify in the TUXEDO UBBCONFIG file. (See Configuring the eLink to MQSeries Server (ELINKMQO) for instructions on configuring the ELINKMQO server in the UBBCONFIG file.)
The ELINKMQO configuration file is divided into the following required sections:
Defines the queue manager name and logical ID.
Note:
The configuration file can only have one QUEUE_MANAGER section.
The ELINKMQO configuration file has one optional section:
Defines minimum and maximum settings for services and messages.
Note:
The configuration file can only have one SERVER section.
These sections and the parameters within each section can be in any order in the configuration file, as long as the required sections and parameters are defined.
The syntax for the QUEUE_MANAGER section of the ELINKMQO configuration file is as follows:
Defining the QUEUE_MANAGER Section (Required)
Listing 3-5
Syntax for QUEUE_MANAGER section
*QUEUE_MANAGER
LQMID=string
NAME=string
Note: The configuration file can only have one QUEUE_MANAGER section.
Required Parameters
The following parameters must be included in the QUEUE_MANAGER section of the ELINKMQO configuration file.
There are no optional parameters for the QUEUE_MANAGER section.
The syntax for the SERVICE section of the ELINKMQO configuration file is as follows:
Listing 3-6 Syntax for SERVICE section
*SERVICE
NAME=string
MQNAME=string
LQMID=string
FORMAT=string
TRAN=Y/N
MAXMSGLEN=integer
REPLYTOQ=string
TIMEOUT=integer
INFIELD=string
OUTFIELD=string
Required Parameters
The following parameters must be included in the SERVICE section of the ELINKMQO configuration file.
Required parameter unless DEFTIMEOUT is specified in the SERVER section.
Optional Parameters
The following parameters are optional.
The syntax for the SERVER section of the ELINKMQO configuration file is as follows:
Listing 3-7 Syntax for SERVERS section
*SERVER
DEFTIMEOUT=integer
DEFMSGLEN=integer
MINMSGLEVEL=integer
MAXMSGLEVEL=integer
Note: The configuration file can only have one SERVER section.
Required Parameters
There are no required parameters in the SERVER section.
Optional Parameters
Listing 3-8 Sample Configuration File for ELINKMQO Server
*SERVER
DEFTIMEOUT=60
DEFMSGLEN=4096
MINMSGLEVEL=10
MAXMSGLEVEL=30
*QUEUE_MANAGER
LQMID=QM1
NAME=BEA.TEST.MANAGER
*SERVICE
NAME=MQTest1
LQMID=QM1
TIMEOUT=20
MQNAME=TEST.SAMPLE.ECHO
REPLYTOQ=TEST.REPLY.QUEUE
*SERVICE
NAME=MQTest2
LQMID=QM1
TIMEOUT=15
REPLYTOQ=TEST.REPLY.QUEUE
MQNAME=TEST.SAMPLE.TOUPPER
*SERVICE
NAME=MQTest3
LQMID=QM1
MQNAME=TEST.NOREPLY.QUEUE
TRAN=YES
MAXMSGLEN=1024
The ELINKMQI.CFG file controls the operation of the MQSeries to eLink server (ELINKMQI). Following are the sections of the ELINKMQI configuration file and the parameters you can define for each section. A sample configuration file follows the descriptions.
Note: ELINKMQI.CFG is a generic filename. You can name this file anything you choose, but the filename must match the -C configuration_file_name parameter you specify in the TUXEDO UBBCONFIG file. (See Configuring the MQSeries to eLink Server (ELINKMQI) for instructions on configuring the ELINKMQI server in the UBBCONFIG file.)
The ELINKMQI configuration file is divided into the following required sections:
Defines the queue manager name and logical ID.
Note:
The configuration file can only have one QUEUE_MANAGER section.
Defines various parameters for the incoming message queue.
The ELINKMQI configuration file has one optional section:
Defines the minimum and maximum debug level.
Note:
The configuration file can only have one SERVER section.
These sections and the parameters within each section can be in any order in the configuration file, as long as the required sections and parameters are defined.
The syntax for the QUEUE_MANAGER section of the ELINKMQI configuration file is as follows:
Defining the QUEUE_MANAGER Section (Required)
Listing 3-9
Syntax for QUEUE_MANAGER section
*QUEUE_MANAGER
LQMID=string
NAME=string
Note: The configuration file can only have one QUEUE_MANAGER section.
Required Parameters
The following parameters must be included in the QUEUE_MANAGER section of the ELINKMQO configuration file.
There are no optional parameters for the QUEUE_MANAGER section.
The syntax for the QUEUE section of the ELINKMQI configuration file is as follows:
Listing 3-10 Syntax for QUEUE section
*QUEUE_MANAGER
LQMID=string
MQNAME=string
MAXMSGLEN=integer
Required Parameters
The following parameters must be included in the QUEUE section of the ELINKMQI configuration file.
There are no optional parameters for the QUEUE section.
The syntax for the SERVICE section of the ELINKMQI configuration file is as follows:
Listing 3-11 Syntax for SERVICE section
*SERVICE
NAME=string
FORMAT=string
TRAN=Y/N
Required Parameters
The following parameters must be included in the SERVICE section of the ELINKMQI configuration file.
The following parameters are optional.
The syntax for the SERVER section of the ELINKMQI configuration file is as follows:
Listing 3-12 Syntax for SERVER section
*SERVER
MINMSGLEVEL=integer
MAXMSGLEVEL=integer
Note: The configuration file can only have one SERVER section.
Required Parameters
There are no required parameters in the SERVER section.
Optional Parameters
Listing 3-13 Sample Configuration File for ELINKMQI Server
*SERVER
MINMSGLEVEL=1
MAXMSGLEVEL=100
*QUEUE_MANAGER
LQMID=QM1
NAME=BEA.TEST.MANAGER
*SERVICE
NAME=SvcToupper
FORMAT=UPPER
*SERVICE
NAME=SvcEcho
FORMAT=ECHO
TRAN=YES
*QUEUE
MQNAME=TEST.SAMPLE.QUEUE1
LQMID=QM1
MAXMSGLEN=200
*QUEUE
MQNAME=TEST.SAMPLE.QUEUE2
LQMID=QM1
The TMQUEUE_MQM.CFG file controls the operation of the server that handles tpenqueue
and tpdequeue
requests (TMQUEUE_MQM). Following are the sections of the TMQUEUE_MQM configuration file and the parameters you can define for each section. A sample configuration file follows the descriptions.
Note: TMQUEUE_MQM.CFG is a generic filename. You can name this file anything you choose, but the filename must match the -C configuration_file_name parameter you specify in the TUXEDO UBBCONFIG file. (See Configuring the TMQUEUE_MQM Server for instructions on configuring the TMQUEUE_MQM server in the UBBCONFIG file.)
The TMQUEUE_MQM configuration file is divided into the following required sections:
Defines the queue manager name and logical ID.
Note:
The configuration file can only have one QUEUE_MANAGER section.
The TQMQUEUE_MQM configuration file has one optional section:
Defines the minimum and maximum debug level and the default message length.
Note:
The configuration file can only have one SERVER section.
These sections and the parameters within each section can be in any order in the configuration file, as long as the required sections and parameters are defined.
The syntax for the QUEUE_MANAGER section of the TQMQUEUE_MQM configuration file is as follows:
Defining the QUEUE_MANAGER Section (Required)
Listing 3-14
Syntax for QUEUE_MANAGER section
*QUEUE_MANAGER
LQMID=string
NAME=string
Note: The configuration file can only have one QUEUE_MANAGER section.
Required Parameters
The following parameters must be included in the QUEUE_MANAGER section of the TQMQUEUE_MQM configuration file.
There are no optional parameters for the QUEUE_MANAGER section.
The syntax for the QUEUE section of the TQMQUEUE_MQM configuration file is as follows:
Listing 3-15 Syntax for QUEUE section
*QUEUE_MANAGER
LQMID=string
MQNAME=string
TUXNAME=string
MAXMSGLEN=integer
Required Parameters
The following parameters must be included in the QUEUE section of the TQMQUEUE_MQM configuration file.
The following parameter is optional for the QUEUE_MANAGER section of the
The syntax for the SERVER section of the TQMQUEUE_MQM configuration file is as follows:
Listing 3-16 Syntax for SERVER section
*SERVER
MINMSGLEVEL=integer
MAXMSGLEVEL=integer
DEFMAXMSGLEN=integer
Note: The configuration file can only have one SERVER section.
Required Parameters
There are no required parameters in the SERVER section.
Optional Parameters
Listing 3-17 Sample Configuration File for the TMQUEUE_MQM Server
*SERVER
DEFMAXMSGLEN=4096
*QUEUE_MANAGER
LQMID=QM1
NAME=BEA.TEST.MANAGER
*QUEUE
TUXNAME=MQTest1
LQMID=QM1
MQNAME=TEST.NOREPLY.QUEUE
*QUEUE
TUXNAME=MQEcho
LQMID=QM1
MQNAME=TEST.SAMPLE.ECHO
MAXMSGLEN=2048
*QUEUE
TUXNAME=MQReply
LQMID=QM1
MQNAME=TEST.REPLY.QUEUE
You must configure the MQSeries queue manager in order to run the eLink Adapter for MQSeries. Refer to your MQSeries documentation for specific instructions on configuring queue managers.