Configuring a queue manager by modifying the qm.ini file
On Microsoft™ Windows™ and Linux™ systems, you can configure the queue manager to use the API exit files by modifying the qm.ini file.
About this task
To configure a queue manager to use the API exit file:
Procedure
-
In the queue manager directory, open the
qm.inifile for editing. For example:/var/mqm/qmgrs/[queue-manager]/qm.iniNote: If the server contains multiple MQ queue managers, there is a directory for each queue manager, which contains theqm.inifile that corresponds to that queue manager. -
Edit the file as shown in the following
example:
ApiExitLocal: Data=com.greenhat.intercept Sequence=200 Name=Intercept Function=EntryPoint Module=intercept -
Stop the queue manager (as a user in the
mqmgroup):endmqm [queue-manager]You must repeat this command until a response similar to the following indicates that the queue manager is not available:
AMQ8146: WebSphere MQ queue manager not available. -
Restart the queue manager (as a user in the
mqmgroup):strmqm [queue-manager]Note: Ensure that the command server is running on the queue manager since HCL OneTest™ API sends commands to the queue manager and controls the exits.