Get JMS Queue Message
Get JMS Queue Message is an asynchronous activity that retrieves a message from the specified queue. You can use this activity to perform a receive operation on the queue as opposed to waiting for a queue message to be delivered to the Wait for JMS Queue Message activity.
You can use the Message Selector field on the Advanced tab to retrieve a specific queue message from the queue.
General
The General tab has the following fields.
Field | Literal Value/Process Property/Module Property | Description |
---|---|---|
Name | None | The name to be displayed as the label for the activity in the process. |
JMS Connection | Literal Value
Module Property |
The JMS connection. For more information, see JMS Connection. |
Destination | Yes | The name of the queue from which to retrieve the message.
The syntax of the destination name is specific to the JMS provider you are using. For more information about queue names, see the JMS provider documentation. |
Message Type | None | The type of the message. This can be one of the following:
|
Acknowledge Mode | Yes | The acknowledge mode for incoming messages. It can be one of the following:
|
Default Map Type Value | Yes | When the message is sent with the message type as Map, the optional XML schema elements having data type as Int, Integer, Float, Decimal, or Double with null values, and the Default Map Type Value check box is selected, then the default value is added while creating the node at the receiver side for respective element, otherwise the node is not created. |
Description
Provide a short description for the Get JMS Queue Message activity.
Advanced
The Advanced tab has the following fields.
Field | Literal Value/Process Property | Description |
---|---|---|
Message Selector | Yes | A string to determine whether a message should be received. The syntax of the message selector is determined by the JMS provider (where message properties are used instead of table column names).
For more information and syntax for a message selector string, see the JMS provider documentation. |
Application Properties Type | None | The type of application-specific message properties that is part of the message. |
JMS Fetch Timeout | Yes |
This field specifies the amount of time (in milliseconds) that the JMS Consumer waits to fetch message from the queue before it times out. If set to zero (0), the JMS Consumer does not time out. Note: JMS Fetch Timeout must be less than Activity Timeout in the Input tab.
|
Output Editor
The Output Editor tab defines the schema to use for messages of type Map, Stream, or XML Text. Map messages are name or value pairs, and using this schema you can define the structure of the retrieved destination queue message. The schema defined on the Output Editor tab becomes the body of the message on the Output tab. For XML Text message type, select an XSD element. For Map and Stream message types, select an XSD type in the Output Editor tab.
Input
The following is the input for the activity.
Input Item | Datatype | Description |
---|---|---|
destinationQueue | string | The queue to which to send the request. This input item overrides the Destination field on the General tab. |
timeout | integer | This field specifies the amount of time (in milliseconds) that the activity waits before it times out. If set to zero (0), the activity times out after default time, which is three minutes. |
selector | string | A string to determine whether a message should be received. The value of this element overrides any value specified in the
Message Selector field on the
Advanced tab. The syntax of the message selector is determined by the JMS provider, but it is usually a subset of SQL92 (where message properties are used instead of table column names).
For more information and syntax for a message selector string, see the JMS provider documentation. |
Output
The following is the output of the activity.
Output Item | Datatype | Description |
---|---|---|
JMSHeaders | complex | The message header fields for the message. For more information about message header fields, see
Common JMS Properties and Headers.
Only properties applicable to this type of message are displayed. |
JMSProperties | complex | The message properties for the message. For more information about message properties, see
Common JMS Properties and Headers.
Only properties applicable to this type of message are displayed. |
Body | as per message type | The body of the message. |
DynamicProperties | complex | Dynamic properties is an additional parameter to add runtime property to the outgoing JMS messages that are specified in the Input tab. This is an optional element with only one instance. Dynamic property can have multiple property elements.
Each property element denotes a single dynamic property and can contain the following elements:
The following data types are supported:
Note: The DynamicProperty overwrites the value of a property (with the same name) added using the
JMS Application Property. The DynamicProperties are also added to the outgoing message.
|
Fault
The
Fault tab lists the possible exceptions generated by this activity.
Fault | Generated When.. |
---|---|
JMSInvalidInputException | The input to the activity is not valid. |
JMSSessionCreateException | The JMS session could not be created. |
JMSReceiveException | The JMS receive operation failed. |
ActivityTimedOutException | A timeout has been reached. |