IBM MQ Listener
The IBM MQ Listener activity listens on a queue and when a message arrives that satisfies the configured filters it retrieves and it starts a process including the contents of the message.
The listener can poll a queue based on interval and a timeout values, or it can wait indefinitely on a queue. Regardless of which mode it is in, when messages arrive on the queue and the listener is running, they are each processed immediately with no intervening interval time.
- A message arrives after a Listener activity is stopped. In this scenario, the message is rolled back if there is a unit of work in effect. If there is no unit of work, the message is returned to the queue through a put call. Note that if the listener does not have the authority to put the message back on the queue, it attempts to put it on the dead letter queue. If there is no dead letter queue or there is an error putting the message on it, the message is lost and an error message is issued.
- There are two listeners in the same queue after you start a new listener. Normally this is not an issue, because when a new message arrives, the first listener exits. However, if the queue is configured to be opened only by one listener, the newly started listener gets errors while connecting. It continues to attempt to connect and issue warning messages periodically. Until a message arrives, it terminates the first listener, after that, the newly started listener connects and processes the message.
There is another general scenario, which affects all process starters. If the Listener activity receives a number of messages and creates processes for them, but those processes are either running or waiting to run without adding checkpoints and the engine is shut down, those messages are lost. If it is imperative that messages are never lost, you can select the Require Client Confirmation checkbox in the General tab to ensure their integrity.
General
The General tab of the Listener activity contains the following fields:
Multi-Message
The Multi-Message tab of the Listener activity contains the following fields:
Advanced
The Advanced tab of the Listener activity contains the following fields:
Conversations
You can use the Conversations tab of the Listener activity to initiate or join a conversation.
Conversations receive messages after the creation of a process instance, which is initiated or joined by an activity. This activity can be used to initiate a conversation. Click the Add New Conversation icon to initiate a conversation. For more details regarding conversations, see TIBCO ActiveMatrix BusinessWorks Application Development.
Output
The following table lists the output items for the Listener activity:
Fault
The Fault tab lists exceptions that occur in the Listener activity:
Error Schema Element | Data Type | Description |
---|---|---|
msg | String | The TIBCO ActiveMatrix BusinessWorks Plug-in for IBM MQ error message. |
msgCode | String | The TIBCO ActiveMatrix BusinessWorks Plug-in for IBM MQ error code. |
mqCompCode | String | If the message originates as an IBM MQ API exception, then that exception's completion code is here. |
mqReasonCode | String | If the message originates as an IBM MQ API exception, then that exception's reason code is here. |
mqErrorCode | String | If the message originates as an IBM MQ API exception, then that exception's reason code is here. |