Configuring the REST API for MFT timeout values
You can configure the length of time, in minutes, after which the REST API for MFT stops trying to connect to the coordination queue manager after the connection is broken. The default timeout is 30 minutes. You can configure this timeout by using the setmqweb command.
Before you begin
![[MQ 9.3.5 Feb 2024]](ng935.gif)
Note: If the mqweb server is runs in a stand-alone IBM® MQ Web Server installation, this task is not applicable. The REST API for MFT is not available in a stand-alone IBM MQ Web Server installation.
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.
Attention:
Before you issue 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
You can configure the timeout for the REST API for MFT.
The REST API for MFT attempts to re-establish the connection immediately after the connection to the coordination queue manager is broken. If this attempt fails, there is an interval of five minutes between every reconnection attempt, until the timeout has passed. 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.
Procedure
What to do next
- Ensure that the REST API for MFT is enabled. For more information, see Enabling the REST API for MFT.
- Ensure that a coordination queue manager is set. For more information, see Configuring the coordination queue manager for the REST API for MFT.
- If you want to use the REST API for MFT to submit create requests, you must set the command queue manager name. For example, if you want to use a REST API command such as create transfer, you must set the command queue manager name. For more information, see Configuring the command queue manager for the REST API for MFT.
- To use the REST API for MFT, a user must be authenticated to the mqweb server
and must be a member of one or more of the
MFTWebAdmin, orMFTWebAdminROroles. For more information about configuring users, see Configuring users and roles for the REST API.