string
for the message. A client can use the JMSCorrelationID
header field to link one message with another. A typical use is to link a response message with its request message.
A JMSCorrelationID
can hold one of the following:
String
byte[]
valueSince each message sent by JMS is assigned a message ID value, it is convenient to link messages via message ID. All message ID values Start with the 'ID:'
prefix.
In some cases, an application (made up of several clients) needs to use an application-specific value for linking messages. For instance, an application may use JMSCorrelationID
to hold a value referencing some external information. Application-specified values must not Start with the 'ID:'
prefix; this is reserved for provider-generated message ID values.
Exception Type | Condition |
---|---|
MessageException | if JMS fails to set the correlation ID due to some internal error. |
IMessage Interface | WebLogic.Messaging Namespace | IMessage.JMSCorrelationIDAsBytes