Creating a message properties context
The message properties context specifies connection information for the underlying Java™ Message Service (JMS) client method call that retrieves the message when you call the ReceiveJMSMessage function.
You pass this context as a parameter when you call the ReceiveJMSMessage function in a policy. The following table shows the properties that you can set in the message properties context:
Property |
Description |
|---|---|
|
String expression that specifies which message
in the topic or queue you want to retrieve. The message selector syntax
is similar to the contents of an SQL |
|
Specifies the length of time that a message
is retained by the JMS delivery system before it expires. Default
value is |
You can create an empty message properties context by passing the NewObject function to the ReceiveJMSMessage as a parameter.
The following example shows how to create a message properties context.
// Call NewObject to create the next context
MsgProps = NewObject();
// Assign a message selector that filters the message to
// retrieve
MsgProps.MessageSelector = "color = 'green' AND custom2 = '1234543'";