Network Deployment (Distributed operating systems), v8.0 > Reference > Administrator best practices


States of the WebSphere MQ link and its channels

For each possible state of a WebSphere MQ link, this table lists the associated states of the link's sender and receiver channels.

State of WebSphere MQ link WebSphere MQ link sender channel WebSphere MQ link receiver channel
INACTIVE Same as STOPPED for the WebSphere MQ link sender. If the administrator requests that the channel go into target state STOPPED it will transition into the STOPPED state. Similarly, an administrator starting the channel will cause it to transition into STANDBY state. No network connection exists between the application server and the queue manager. If the attempts of a WebSphere MQ sender channel to establish a connection should succeed, it will become possible for messages to flow from the queue manager to the messaging engine. In this case the receiver channel will transition into RUNNING state.
STARTING A transitional state. The channel should successfully pass through this into BINDING state with no intervention. A transitional state. The channel should successfully pass through this into BINDING state with no intervention.
BINDING A transitional state. The channel should successfully pass through this into RUNNING state with no intervention. The channel might transition into STOPPING state if a problem occurs. A transitional state. The channel should successfully pass through this into RUNNING state with no intervention. The channel might transition into STOPPING state if a problem occurs.
INITIALIZING A transitional state. The channel should successfully pass through this into STARTING state with no intervention. A transitional state. The channel should successfully pass through this into STARTING state with no intervention.
RETRYING A network connection to the queue manager has been lost. The channel attempts to reconnect. If the retry intervals are exhausted without successfully establishing the connection then the channel enters STOPPED state. If a connection is successfully reestablished, the channel enters INITIALIZING state. Not applicable to receiver channel.
STANDBY When in this state, the sender channel is not network-connected to its WebSphere MQ counterpart receiver channel. It is waiting for a message to send before attempting to establish a connection. When a message arrives for transmission, the channel will transition into STARTING state and start the process of attempting to establish a network connection. The administrator may command the channel to transition into either INACTIVE or STOPPED state from this state. Not applicable to receiver channel.
RUNNING In this state a network connection has been established between application server and queue manager. Messages destined for the queue manager will be transmitted. Either attempting to stop the channel by using the admin console, or the loss of the network connection will cause transition into the STOPPING state. Network connection established between application server and queue manager. Messages destined for the messaging engine will be received. Attempting to stop the channel, or the loss of the network connection will cause a transition into STOPPING state.
STOPPING A transitional state. The channel should transition into either RETRYING state or STOPPED state without intervention. If the channel has been placed in STOPPING state by the administrative request to become INACTIVE then it will transition into the STANDBY state. If the channel has been placed in this state by administrator request to stop, it will transition into the STOPPED state. If the channel has been placed in this state by a broken network connection it will transition into the RETRYING state, assuming that it has non-zero retry intervals or is otherwise STOPPED. A transitional state. The channel will transition from this state into STOPPED without intervention.
STOPPED No network connection exists between the application server and the queue manager. Messages destined for the queue manager will not be transmitted.

To transition from this state requires the administrator to start the channel, this will place it in STANDBY state.

No network connection exists between the application server and the queue manager. Any attempt by a sender channel in the WebSphere MQ network to establish a connection will be rejected. Messages destined for the messaging engine will not be received. Administrator action is required to move the channel out of this state. Starting the channel will move it into INACTIVE state.

For information about the states of the channels in a WebSphere MQ network refer to the Intercommunication section of the WebSphere MQ information center, available from the WebSphere MQ library.

We can stop a WebSphere MQ link (and its sender and receiver channels) on a service integration bus, or you can stop individual sender or receiver channels. The following sections describe in more detail what happens when you transition between states.


Stop a WebSphere MQ link


Stop a WebSphere MQ link results in both the WebSphere MQ link sender and the WebSphere MQ link receiver channels being stopped:


Stop a WebSphere MQ link sender channel


Stop a WebSphere MQ link sender stops only the WebSphere MQ link sender channel. (However, when the WebSphere MQ link sender channel is stopped, it communicates with the receiver channel in the WebSphere MQ network to say it is stopping, with the result that the receiver channel on WebSphere MQ stops and goes into inactive state.)

If a currently RUNNING WebSphere MQ link sender channel is stopped in state STOPPED, it goes to STOPPED state.

If a currently RUNNING WebSphere MQ link sender channel is stopped in state INACTIVE, it goes to STANDBY state.


Stop a WebSphere MQ link receiver channel


Stop a WebSphere MQ link receiver stops all receiver channel connections for that receiver.

If a currently RUNNING WebSphere MQ link receiver channel is stopped in state STOPPED, it goes to STOPPED state. The sender channel in the WebSphere MQ network will notice, either when it tries to next send some data, or when its heartbeat interval is reached and it tries to send a heartbeat flow, or when its disconnect interval expires and it attempts to close the session, that the WebSphere MQ link receiver in the service integration bus is in STOPPING state and itself stop and then enter a state of RETRYING. The WebSphere MQ link receiver will then go to STOPPED state, so preventing a sender channel in the WebSphere MQ network from establishing a session.

If a sender channel in the WebSphere MQ network is started while a WebSphere MQ link receiver channel in a service integration bus is in STOPPED state, the request fails with an error indicating that the WebSphere MQ link receiver channel is not available.

If a currently RUNNING WebSphere MQ link receiver channel is stopped in state INACTIVE, it goes to STOPPING state. The sender channel in the WebSphere MQ network will notice, either when it tries to next send some data, or when its heartbeat interval is reached and it tries to send a heartbeat flow, or when its disconnect interval expires and it attempts to close the session, that the WebSphere MQ link receiver is in STOPPING state and itself stop and then enter a state of RETRYING. The WebSphere MQ link receiver will then go to INACTIVE state. The RETRYING sender channel in the WebSphere MQ network will then establish a session with the WebSphere MQ link receiver channel, at which point both channels will go to RUNNING state.


WebSphere MQ link receiver channel connection


Stop a WebSphere MQ link receiver channel connection stops only that connection. Individual connections can only be stopped in target state INACTIVE.


Modes of a stopped WebSphere MQ link

When an active WebSphere MQ link receiver channel connection is stopped, the connection goes to a state of STOPPING. The sender channel in the WebSphere MQ network will notice, either when it tries to next send some data, or when its heartbeat interval is reached and it tries to send a heartbeat flow, or when its disconnect interval expires and it attempts to close the session, that the WebSphere MQ link receiver is in STOPPING state and itself stop and then enter a state of RETRYING.

The MODE has an effect on the stopping of channels.

  1. QUIESCE, the channel stops when it is convenient for it to do so.

    For a WebSphere MQ link sender channel, the link sender goes to STANDBY or STOPPED state (depending on the stop state specified), this can occur either when it reaches the end of the current batch, or when it reaches a heartbeat interval.

    In the case of a WebSphere MQ link receiver, the link receiver goes to STOPPING state and then to INACTIVE or STOPPED state (depending on the stop state specified) when the sender in the WebSphere MQ network next attempts to communicate with it. Though, if a WebSphere MQ link receiver channel goes INACTIVE and the sender channel in the WebSphere MQ network goes to RETRYING, then as soon as a session is reestablished, both ends will go to RUNNING state.

  2. FORCE, the channel stops immediately.

    For a WebSphere MQ link sender channel, the WebSphere MQ link sender goes to STANDBY or STOPPED state (depending on the stop state specified).

    For a WebSphere MQ link receiver, the WebSphere MQ link receiver goes to INACTIVE or STOPPED state (depending on the stop state specified). When the sender channel in the WebSphere MQ network next tries to communicate with the WebSphere MQ link receiver, it will either enter a state of RETRYING and reestablish a session with the WebSphere MQ link receiver, or go to a STOPPED state.

WebSphere MQ link sender channels can go to INDOUBT state (as can sender channels in a WebSphere MQ network). WebSphere MQ link receiver channels do not go to INDOUBT state.

While sending a batch of persistent messages, a WebSphere MQ link sender channel goes to a state of INDOUBT. When it commits the batch, it sends a commit request to the partner and waits for confirmation. When the partner sends a confirmation, the batch is finally committed and the sender channel is no longer in INDOUBT state. If the partner fails to send a confirmation flow, then the sender channel will remain in INDOUBT state.

INDOUBT batches can be COMMITTED or ROLLED back from the Saved Status panel for WebSphere MQ link sender channels.
WebSphere MQ link sender
Exception destinations
Outbound transport options
WebSphere MQ link receiver
Workload sharing with queue destinations
Configure foreign bus connections
Set a WebSphere MQ link receiver channel

+

Search Tips   |   Advanced Search