Stubbing settings for MQ transport

You can specify the required stubbing mode and configure the queue settings for a IBM® WebSphere® MQ transport.

By using the Stubbing tab, you can specify the stubbing settings.

The Stubbing page of the MQ transport.

Field/Check box Description

Stubbing Mode

Select one of the available modes for routing messages.

  • Direct: Select this option to enable Rational® Integration Tester to subscribe to a queue like any other client and consume messages directly. If the real application is running, it is a race condition whether Rational Integration Tester or the real application receives a message.
Note: There are no other configuration parameters to specify for the Direct stub mode in this page.
  • Use Sift & Pass Through with Dynamic Queues: Use this option to use the API exit to route messages to Rational Integration Tester instead of placing them on the real queue. The messages are sent to dynamic queues that are created when the stub is run and this can be accessed by only one stub at a time. For each message received, Rational Integration Tester either responds to it or writes it to the intended queue. For information about configuring a message-based stub properties, see Creating and modifying message-based stubs
  • Use Sift & Pass Through with Fixed Queues: This option is similar to the above Sift and Pass Through option but the messages are sent onto the fixed queues that are already created and configured with the specific suffix. With this option, multiple stub copies can be run to improve performance.
Note: If you want to specify a default stub mode for each new WebSphere MQ transport that is created, click Project > Preferences to open the Preferences dialog box, click Virtualization to open the Virtualization page, and select the required mode from the Default WebSphere MQ Stubbing mode list.
Note: If you want to enable sift-and-pass-through stubbing, you must create a diverted queue rules namelist for any Rational Integration Tester API exits deployed on the queue manager. For information about this, see Configuring a queue manager to support sift-and-pass-through stubbing.

Stub Queue, Diverted Queue areas

Sift-and-pass-through for WebSphere MQ requires two queues: a stub and a diverted queue. Both of these queues are created automatically in dynamic mode but needs to be created in fixed mode.
  • Stub queue: This is the queue from which the stub will consume messages.
  • Diverted queue: This queue holds the details of messages that have been diverted so that they can be forwarded to the live system if the stub deems it necessary.
If Use Sift & Pass Through is clicked in the Stubbing Mode list, you can:
  • Dynamic mode: Configure the model queues used to create the queues that are required to configure sift-and-pass-through (the defaults are configured, but it is possible to override these).
  • Fixed mode: Configure the suffix that is used for the stub and the divert queue.
  • Specify how messages that are not dealt with by a stub should be handled. The options are to either discard them (default) or pass through to the "real" queue.

Pass through queue

If any of the Use Sift & Pass Through options are selected as the stubbing mode, the transport is set to MQOO_SET_ALL_CONTEXT option for opening the pass through queue.

Model Queue for Dynamic mode (Stub, Diverted queues)

In Dynamic mode, the stub queue should be created from a model queue that creates a temporary dynamic queue because only the stub needs to be able to read from this temporary queue, which must be deleted when the connection is closed.

The diverted queue should be created as a permanent dynamic queue because multiple connections need to be able to read from, and write to, it.

When a queue manager is created, suitable model queues are created:
  • SYSTEM.DEFAULT.MODEL.QUEUE is used as the default to create the stub queue.
  • SYSTEM.DURABLE.MODEL.QUEUE is used as the default for creating the diverted queue.

Rational Integration Tester uses temporary queues for recording.

Select the Use Default Model Queue check box (by default, it is selected) if you want to specify SYSTEM.DEFAULT.MODEL.QUEUE or SYSTEM.DURABLE.MODEL.QUEUE (as applicable) as the object from which to copy attributes.

If you want to specify a different model queue, clear the Use Default Model Queue check box and enter a queue name in the Model Queue field.

If you are using Rational Integration Tester 8.5.0.1 or later, the prefixes used by Rational Integration Tester when creating WebSphere MQ model queues for the sift-and-pass-through capability have been changed to be more consistent.

Model queue prefixes System
"AMQ.RIT.STUB" WebSphere MQ on distributed platforms
"AMQ.RIT.DIVERTED" WebSphere MQ on distributed platforms
"AMQ.RIT.STUB" WebSphere MQ on IBM z/OS®
Suffix for Fixed mode (Stub, Diverted queues) You must manually create the stub and the divert queues with appropriate suffix before running the stub. By default, .STUB and .DIVERT suffix is used by Rational Integration Tester for identifying these queues, which can be changed, if required.

For example: To run a stub using queue Q1, you must manually create Q1.STUB and Q1.DIVERT before you run the stub.

Open Options (Stub, Diverted, Pass Through queues)

If you are using Rational Integration Tester 8.5.0 or later, you can override default options when you are opening model queues. By default, the Open Options field is blank and the value of 1 (MQOO_INPUT_AS_Q_DEF) is used. Entering a valid numeric value in the field overrides the default.

Note: Only advanced users of Rational Integration Tester who have a deep understanding of WebSphere MQ should use the Open Options field. Any value entered in the Open Options field is not validated when you click Test Transport or OK. However, an invalid value causes a warning message to be displayed when you start a stub.

Pass through unhandled messages on stub completion

To pass the queue messages that were not handled by the stub to the "real" queue, select this check box.

Clear this check box to discard the queue messages that were not handled by the stub.


Feedback