Use the mqsistartmsgflow command to start integration servers, applications, and message flows.
To use this command, you must have already deployed message flows, if specified, to the broker in a broker archive (BAR) file. You can start message flows only if the integration server to which the message flow is deployed is running.
>>-mqsistartmsgflow--| brokerSpec |-----------------------------> >--+- -e --integrationServerName-+--+--------------+------------> '- -g ------------------------' +- -m flowName-+ '- -j ---------' >--+---------------------+--+---------------------+-------------> +- -k applicationName-+ '- -v --traceFileName-' '- -z ----------------' >--+-------------------+--+-------------------+---------------->< '- -w --timeoutSecs-' '- -y --libraryName-' brokerSpec |--+- brokerName ----------------+------------------------------| +- -n --brokerFileName--------+ | .-------------------------. | | V | | '-----+- -i --ipAddress-+---+-' +- -p --port------+ '- -q --qMgr------'
Use this option if multiple users want to connect to the same broker, or if you are using advanced connection parameters such as SSL.
To create this file, right-click the broker in the IBM® Integration Explorer and select Export *.broker file. When prompted, navigate to the location in which you want to save the file and enter the file name; the extension .broker is appended automatically when you click Save. Include the location (path) and file name when you specify this parameter. You must ensure that the location is accessible when you run this command.
If you want to run a command that uses SSL to administer a remote broker over a secured channel, you must specify the keystore and truststore password for the connection using the IBM_JAVA_OPTIONS environment variable. See Resolving problems when running commands for further information.
Use this option for connections to remote brokers that do not require advanced connection parameters.
If you choose this option, you must specify at least one of these three parameters; the order in which you specify them is insignificant. You cannot specify each parameter more than once.
Parameters that you omit assume default values:
If you specify -e without -m or -j, the integration server is started. Message flows are started only if they were running when the integration server was stopped.
If you specify -e with -m or -j, the integration server must be running. If the integration server is stopped, the request is rejected.
If you specify -g without -m or -j, all integration servers are started, but message flows are started only if they were running when the integration server was stopped.
If you specify -g with -m or -j, the specified message flow or flows are started only if the integration server is running. The request checks all integration servers, and starts message flows on integration servers that are currently running. Error BIP2851 is reported for each integration server that is not running.
(Optional) All message flows in the specified integration server are started.
If you set this parameter, all message flows in the integration server are started, regardless of whether they are at the integration server level, in an application, or in a library. No applications are started. If you set the -j parameter with the -z parameter, all applications in the integration server are started, and the message flows that are at the integration server level or in libraries at the integration server level are started. The combination of -j and -z parameters does not start message flows inside applications, or message flows inside libraries inside applications.
If you do not specify -j or -m, the integration server identified by -e (if specified), or all integration servers on this broker, are started. Message flows that were running when the integration server was last stopped are also restarted.
If you set the –k parameter, you must also set the –e parameter. If you set the –k parameter but do not set the –m parameter, the application is started. If you set the –m parameter, the named message flow in the application is started.
If you set the –j parameter with the -k parameter, all message flows in the application are started, including those in referenced libraries. Message flows in other applications or at integration server level are not started. The application is not started.
If you set the -k parameter with the –m or –j parameters, ensure that the application that is specified by the -k parameter is running. You cannot start message flows in an application that is not started.
You cannot set both the –k parameter and the –z parameter.
If you set the –y parameter, you must also set the –e parameter. If you set the –m parameter, the named message flow in the library is started.
If you set the –j parameter with the –y parameter, all message flows in the library are started. Message flows in other libraries or at integration server level are not started.
To start all flows in a specific library in an application, use the –y parameter with the –k parameter. When you use a combination of the –y and –k parameters, only flows in the named library in the named application are started. No flows are started at the application level, or in any other libraries in the application. No flows are started in any other application or at integration server level. The application is not started.
If you set the -j parameter with the -z parameter, all applications in the integration server are started, and the message flows that are at the integration server level or in libraries at the integration server level are started. The combination of -j and -z parameters does not start message flows inside applications, or message flows inside libraries inside applications.
If you try to connect to a remote broker by specifying the i, p, and q parameters, or by using a connection parameter file (.broker), the command attempts to use WebSphere® MQ Java™ client code. This option is not supported on z/OS, and returns the following error:
BIP1046E: Unable to connect with the broker (name)
The reported reason code is MQRC_ENVIRONMENT_ERROR. You must specify a local queue manager.
Start a named message flow that you have deployed to integration server eg1 on the broker IB9NODE:
mqsistartmsgflow IB9NODE -e eg1 -m simpleflow
Ensure that all message flows are running on the local broker IB9NODE:
mqsistartmsgflow IB9NODE -g -j
Start the message flow myFlow1 in the application myApplication in the default integration server:
mqsistartmsgflow IB9NODE -e default -k myApplication -m myFlow1
Start the message flow myFlow1 in the library myLibrary, which is referenced by the application myApplication, in the default integration server:
mqsistartmsgflow IB9NODE -e default -k myApplication -y myLibrary -m myFlow1
Start all message flows and start all applications in the default integration server:
mqsistartmsgflow IB9NODE -e default -z -j