Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 9 JMS Palette : Wait for JMS Topic Message

Wait for JMS Topic Message
Activity
The Wait for JMS Topic Message waits for the receipt of a message for the specified JMS topic.
See Scalability With Incoming Events in TIBCO ActiveMatrix BusinessWorks Process Design Guide for information on running the "Wait for..." activities in a multi-engine mode.
Configuration
The Configuration tab has the following fields.
The JMS connection. See JMS Connection for more information about creating a JMS connection.
Note: If you are using TIBCO Enterprise Message Service as your JMS provider, you can use the Browse button next to this field after specifying a valid connection in the JMS Connection field. The Browse button displays a list of configured destinations in the JMS server that are appropriate for this activity.
Text — The message is a java.lang.String.
Note — In the TIBCO ActiveMatrix BusinessWorks 5.10 release, there is a change in the behavior of this feature. Now only the messages that are not confirmed, would be redelivered.
Advanced
The Advanced tab has the following fields.
Specifies the polling interval to check for new messages. This default interval is set by the custom engine property bw.plugin.jms.receiverTimeout. If no value is specified for the property, the default polling interval is one second.
Message Event
The Event tab has the following fields.
This expression is specified in XPath, and only data from the incoming event is available for use in this XPath expression. See TIBCO ActiveMatrix BusinessWorks Process Design for more information about XPath expressions.
Using Wait for JMS Queue Message Activity in Multi-Engine Design
All "Wait for ..." activities start listening from the time the bwengine loads and can be configured to filter static data. These activities cannot filter dynamic data.
The activity pulls all the messages that are in the queue upon startup and processes them according to the Event key. Any messages that were picked up but do not match the key are discarded. A Wait for JMS Queue Message Activity cannot be used with the Candidate Event key as the key is applied after receiving the message from the queue.
In a multi-engine environment, when new messages arrive on the queue, the messages are dispatched among all active listeners in a round-robin fashion. Thus an engine may potentially pick up the message which was intended for some other engine, and later discard the message because of a mismatch in the Event key.
It is recommended that you use the Wait for JMS Queue Message activity with the Message Selector in a multi-engine mode. The Message Selector is applied while browsing the queue before picking up the messages.
Input
See TIBCO ActiveMatrix BusinessWorks Process Design for more information about mapping and transforming input data.
The input for the activity is the following.
Output Editor
The Output Editor tab defines the schema to use for incoming messages whose message type is Map, Stream, or XML Text. Map messages are name/value pairs, and the schema allows you to define the structure of the incoming message. Once defined, the schema on the Output Editor tab becomes the structure used for the body of the message displayed on the Output tab.
See Appendix A, Specifying Data Schema for a complete description of using the Output Editor tab.
Output
The output for the activity is the following.
The message header fields for the message. See JMS Properties for more information about message header fields.
The message properties for the message. See JMS Properties for more information about message properties.
Note: The DynamicProperty will overwrite the value of a property (with the same name) added using the JMS Application Property.
Error Output
The Error Output tab lists the possible exceptions that can be thrown by this activity. See TIBCO ActiveMatrix BusinessWorks Error Codes for more information about error codes and corrective action to take.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved