axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26543] New: - Correlation ID not being set in message - culprit is createSendProperties in class JMSSender
Date Thu, 29 Jan 2004 23:57:17 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26543>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26543

Correlation ID not being set in message - culprit is createSendProperties in class JMSSender


           Summary: Correlation ID not being set in message - culprit is
                    createSendProperties in class JMSSender
           Product: Axis
           Version: 1.2 Alpha
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Basic Architecture
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: annasarte@fairisaac.com


Correlation ID not being set in message - culprit is createSendProperties in 
class JMSSender.

We have modified the method to the following so that it does not drop the 
correlation ID.

private HashMap createSendProperties(MessageContext context)
    {
 
        if(!context.containsProperty(JMSConstants.PRIORITY) &&
            !context.containsProperty(JMSConstants.DELIVERY_MODE) &&
            !context.containsProperty(JMSConstants.JMS_CORRELATION_ID) &&
           !context.containsProperty(JMSConstants.TIME_TO_LIVE))
        {
            return null;
        }
 
        HashMap props = new HashMap();
        if(context.containsProperty(JMSConstants.PRIORITY))
            props.put(JMSConstants.PRIORITY,
            context.getProperty(JMSConstants.PRIORITY));
        if(context.containsProperty(JMSConstants.DELIVERY_MODE))
            props.put(JMSConstants.DELIVERY_MODE,
            context.getProperty(JMSConstants.DELIVERY_MODE));
        if(context.containsProperty(JMSConstants.TIME_TO_LIVE))
            props.put(JMSConstants.TIME_TO_LIVE,
            context.getProperty(JMSConstants.TIME_TO_LIVE));
        if(context.containsProperty(JMSConstants.JMS_CORRELATION_ID))
            props.put(JMSConstants.JMS_CORRELATION_ID,
            context.getProperty(JMSConstants.JMS_CORRELATION_ID));
        return props;
    }

Mime
View raw message