Java CAPS JMS Reference

JMS Message Header Properties

You can set the message header properties for both inbound or outbound JMS messages. These property nodes are shown in the following figure, as they appear in the user interface. These same properties are also available for the output node in the receiveWait operation. When you set these properties in a Java based Collaboration Definition, they are used only by the Collaboration that uses that specific Collaboration Definition.

Figure 1–13 JMS Message Property Nodes (receive operation)

Screen capture showing JMS message property nodes
in OTD tree.

The following table shows the allowed values for the properties and the JMS methods used when you set a property in a Collaboration Definition. The methods that are exposed for your use are cross-referenced to the appropriate description. The methods that are not cross-referenced are automatically assigned, and not exposed.

Property 

Values 

Equivalent JMS Methods 

CorrelationID

Correlation ID 

getJMSCorrelationID()

setJMSCorrelationID(string)

CorrelationIDAsBytes

Correlation ID 

getCorrelationIDAsBytes

setCorrelationIDAsBytes(byte[])

DeliveryMode

Persistent, nonpersistent (default = persistent) 

getDeliveryMode()

setDeliveryMode(arg0)

Destination

Destination (default = message destination as configured in Connectivity Map) 

getDestination()

setDestination(arg0)

Expiration

Number in milliseconds (default = 0 ms = never expire) 

getTimeToLive()

setTimeToLive(arg0)

MessageID

Message ID 

getJMSMessageID()

setJMSMessageID(string)

Priority

0 - 9 where 9 is the highest priority (default = 4) 

getPriority()

setPriority(arg0)

Redelivered

True, false 

getJMSRedelivered()

setJMSRedelivered(boolean)

ReplyTo

Destination 

getJMSReplyTo()

setJMSReplyTo(destination)

Timestamp

Number in milliseconds 

getJMSTimestamp()

setJMSTimestamp(long)

Type

Text, Bytes, Map, Stream 

getJMSMessageType()

setJMSMessageType(arg0)