[
http://jira.jboss.com/jira/browse/JBESB-656?page=comments#action_12367975 ]
Daniel Bevenius commented on JBESB-656:
---------------------------------------
Hi Mark,
just to follow up on this. I checked out the jms spec last night and this is what it says
about the JMSCorrelationID:
3.4.5 JMSCorrelationID
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.
JMSCorrelationID can hold one of the following:
• A provider-specific message ID
• An application-specific String
• A provider-native byte[] value
...
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.
How about a default implementation for JMSRouter to set the JMSCorrelationID to the
JMSMessageID and with the refactoring of JBESB-651 others can extend JMSRouter to meet
their specific needs?
Thanks,
Daniel
JMSCorrelationID pulled from message body when it should be the
header
----------------------------------------------------------------------
Key: JBESB-656
URL:
http://jira.jboss.com/jira/browse/JBESB-656
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Transports
Affects Versions: 4.2 Milestone Release 2
Reporter: Mark Little
Assigned To: Mark Little
Priority: Critical
Fix For: 4.2 Milestone Release 3
if (message.getBody().get("MessageId")!=null) {
oMsg.setJMSCorrelationID((String)message.getBody().get("MessageId"));
}
Does not make sense, because the MessageId is from the EPR, which is within the header.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira