Wednesday, April 2, 2014

MQ Channels

Current and active

The channel is "current" if it is in any state other than inactive. A current channel is "active" unless it is in RETRYING, STOPPED, or STARTING state. If a channel is "active" it may also show a sub-state giving more detail of exactly what the channel is doing.
Figure 1. Flows between channel states
The diagram shows the flows between channel states. A stopped channel can be started, and becomes inactive. A start command, trigger, remote initiation, or a channel initiator places the channel in the initializing state. The channel moves into starting state, and then binding state, while it establishes session and initial data exchange. If the status is OK, the channel state becomes running. The channel can be placed into a paused state while waiting for message-retry interval, or a stopping state after an error, a STOP request, or if a disconnect interval expires. The channel could then move into a retrying state, or back to the stopped state.

Note:
  1. When a channel is in one of the six states highlighted in figure (INITIALIZING, BINDING, REQUESTING, RUNNING, PAUSED, or STOPPING), it is consuming resource and a process or thread is running; the channel is active.
  2. When a channel is in STOPPED state, the session may be active because the next state is not yet known.

No comments:

Post a Comment