Configuring the REST API for MFT
By default, the mqweb server which hosts the IBM® MQ Console and REST Services does not have MFT enabled. You can configure whether the REST API for MFT is enabled, set the coordination queue manager, and
specify the MFT reconnect timeout by using the
setmqweb properties command.
For a create REST API command like Create transfer you
must add mqRestMftCommandQmgr.![[Continuous Delivery]](ngcd.gif)
By
default, the mqweb server which hosts the IBM MQ Console
and REST Services does not have MFT
enabled.
Before you begin
You need:- To exercise MFT REST services, you need to
enable the MFT REST service by setting
mqRestMftEnabled to true and also set the command queue
manager name to
mqRestMftCoordinationQmgr:setmqweb properties -k mqRestMftEnabled -v true setmqweb properties -k mqRestMftCoordinationQmgr -v <coordinationQmgrName> - To submit any, create request, for example, create transfer or resource monitor, you need to set
the
mqRestMftCommandQmgrsetmqweb properties -k mqRestMftCommandQmgr -v <commandQmgrName> - Restart the mqweb server to enforce the values you have just set by issuing the endmqweb command followed by the strmqweb command.
- Check the status of the web server by issuing the dspmqweb command.
On z/OS®, you must have authority to
run the dspmqweb and setmqweb commands, and write access to the
mqwebuser.xml file.
On all other operating systems, you must be a
privileged user.
To use the REST API for MFT, the caller must be authenticated to the mqweb
server and must be a member of one or more of the MFTWebAdmin, or
MFTWebAdminRO roles.
![[z/OS]](../common/../configure/ngzos.gif)
Attention:
Before issuing either the setmqweb or dspmqweb commands on z/OS, you must set the WLP_USER_DIR environment variable, so that the variable points to your mqweb server configuration.
export WLP_USER_DIR=WLP_user_directory where
WLP_user_directory is the name of the directory that is passed
to crtmqweb. For
example:export WLP_USER_DIR=/var/mqm/web/installation1For more information, see Create the mqweb server.
About this task
When you configure the REST API for MFT timeout, note that the first attempt to re-establish the connection is made immediately after the connection to the coordination queue manager is broken. If this fails, there is an interval of five minutes between every reconnection attempt. Therefore, setting a value between 0-5 results in only one attempt to reconnect.
After the reconnection times out, the next attempt to reconnect is made when any of the REST API for MFT resources are invoked. If this reconnection attempt fails, MFT again attempts to reconnect every five minutes until the reconnect timeout has passed.