Creating eaapi.ini for the MVMM Extensible Agent and extensions
On platforms excluding z/OS: If only one agent exists, it can share the eaapi.ini used by the extensions in the directory specified by MQS_HOME and that is recommended. If multiple agents exist, an eaapi.ini should be created in the directory where the agent executable resides. Each eaapi.ini must specify a unique port for the agent to use.
On z/OS platforms: One unique member should exist for use by the native extensions and their agent. Each member should specify a unique port for the agent to use.
The eaapi.ini file can be used to:
Configure extensions to use "localhost" to contact qpea, instead of what it gets back from gethostname.
[networksettings]
uselocalhost=true
Configure the agent to only bind to a specified IP address, and not to all addresses on the system it is running on.
[networksettings]
sock_bind_address=nnn.nnn.nnn.nnn
Configure QPEA to listen on a port other than 2612
[networksettings]
agent_listen_port=XXXX
Make BTM extensions connect to a specific agent based on the queue manager the application uses (see below).
BTM
The eaapi.ini file must reside in the directory specified by the MQS_HOME environment variable. In order to allow the BTM exit of two queue managers to use two different agents when using the same user id, eaapi.ini can contain stanza names optionally suffixed with the similar string as used for QPLog.ini and specified when calling log_init_from_ini. The base stanza would apply to all extensions and agents unless overridden by a more restrictive stanza. Note, unlike the QPLog.ini stanza, only one qualification is allowed in eaapi.ini.
[networksettings_btm]
This would apply to all BTM extensions unless overridden by a more restrictive stanza.
[networksettings_btm_myQM]
The settings are different for the agent than for the extension and therefore you need to place eaapi.ini for the agent in its installation directory. That is also true of any java extension; eaapi.ini should reside in its working directory. All the IBM MQ BTM extensions should use eaapi.ini from the MQS_HOME directory and if necessary, separate settings by suffixing the stanza name.
z/OS
The member on z/OS uses parenthesis () instead of brackets [] for stanza names.
- Add a new <YOURHLQ.INSTALL.CNTL> library member with contents:
(networksettings)
agent_listen_port=XXXX - Add an EAAPIINI DD statement that points to what you created in step 1 member to the started task JCL for QPEA, QPCFG, QPMON, and QPBTM.
//EAAPIINI DD DISP=SHR,DSN=<YOURHLQ.INSTALL.CNTL>...CNTL(EAAPIINI) - Restart the QPEA, QPCFG, QPMON and QPBTM tasks for the agent and extensions to use the information in the new EAAPIINI member.