Stopping a connector

A connector can be stopped from either the system on which the connector is installed or the system on which the integration broker is installed. Several methods are available to stop a connector, as follows:

From the connector system

From Windows

From UNIX

From a UNIX system, use the following command.

  1. Navigate to the ProductDir/bin directory,
  2. Type: connector_manager_connName - option

where option is one of the following options:

Table 9. connector_manager command stopping options

Option Description
- stopgraceful
 
Invokes a java utility from the connector-agent side to stop the connector agent. However, if the automatic restart feature is on, the connector agent will restart itself again.
-stop
 
Invokes a java utility that stops the connector agent, so even if the automatic restart feature is on, the connector agent will be forced to shut down.
-kill Kills the operating-system process for the connector agent. Use this if other methods fail to stop the connector.

From the broker system

From either Windows or UNIX systems, you can issue the mqsiremotestopadapter command at the command line on the integration broker from the system on which the integration broker is installed if the WebSphere Business Integration Adapters Utility has been installed.

Note:
The WebSphere MQ Integrator Broker SupportPac, IO02: WebSphere Business Integration Adapters Utility must have been installed to make this command available.
The syntax for the command is:
mqsiremotestopadapter brokerName -c adapterName -n adapterQueue 
 [-h hostName] [-p port] [-q adapterQueueManager]
 

For details refer to the following section, Mqsiremotestopadapter command line parameters.

Mqsiremotestopadapter command line parameters

Required Parameters

brokerName
The name of the WebSphere message broker with which the adapter is communicating.
-c adapterName
Identifies the name of the adapter to shutdown.
-n adapterQueue
The name of the WebSphere MQ queue monitored by the adapter for a shutdown message.

Optional Parameters

-h hostName
The name or IP address of the machine where the WebSphere MQ Queue Manager, specified with -q parameter, is running (defaults to the local machine).
-p port
The port on which the WebSphere MQ Queue Manager, specified with the -q parameter, is listening for incoming requests. The default value is 1414.
-q adapterQueueManager
Specifies the WebSphere MQ Queue Manager that is being used by the adapter. The queue identified by the -n parameter must be managed by this Queue Manager. This Queue Manager is located on the same machine as the adapter.

Copyright IBM Corp. 1997, 2004