Cisco Cisco Workload Automation 6.3 User Guide
17
Defining JMS Jobs
Defining JMS Events
—
a provider-specific message ID
—
an application-specific String
—
a provider-native byte [] value
Since each message sent by a JMS provider is assigned a message ID value, it is convenient to link messages via
message ID. All message ID values must start with the 'ID:' prefix.
message ID. All message ID values must start with the 'ID:' prefix.
15.
(Optional) In the
Message Type
field, choose the message type from the drop-down list.
Some messaging systems require that a message type definition for each application message be created and that
each message specify its type. This ensures that the field is properly set for those providers that require it.
each message specify its type. This ensures that the field is properly set for those providers that require it.
CWA supports these message types:
—
Text Message
—
Bytes Message
—
Stream Message
—
Map Message
16.
From the
Acknowledgement Mode
list, specify whether the consumer or the client will acknowledge any
messages it receives.
Note:
If the Transacted option is selected, this will be ignored.
The following modes are available:
—
Auto
– The session automatically acknowledges a client's receipt of a message either when the session has
successfully returned from a call to receive or when the message listener the session has called to process the
message successfully returns.
message successfully returns.
—
Client
– The client acknowledges a consumed message by calling the message's acknowledge method.
—
Dups OK
– This acknowledgment mode instructs the session to lazily acknowledge the delivery of messages.
17.
In the
Message
field, enter the body of the JMS message.
18.
Click
OK
to add the job.
Defining JMS Events
Using the JMS Adapter, you can define events acting as a “consumer” that can be used for monitoring selected topics
or queues in the JMS systems. Events are triggered when a message is received for the monitored entity. Data entry
fields are provided for user to specify the topic or queue to be monitored as well as a selector expression for qualifying
messages, in standard JMS terms.
or queues in the JMS systems. Events are triggered when a message is received for the monitored entity. Data entry
fields are provided for user to specify the topic or queue to be monitored as well as a selector expression for qualifying
messages, in standard JMS terms.
To define a JMS event:
1.
In the
Navigator
pane, select
Definitions>Events>JMS
to display the JMS Events pane.
2.
Right-click
JMS
and select
Add JMS Event
from the context menu.
The
JMS Event Definition
dialog displays.