activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1394492 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/stomp/StompHelper.cpp
Date Fri, 05 Oct 2012 13:00:09 GMT
Author: tabish
Date: Fri Oct  5 13:00:09 2012
New Revision: 1394492

URL: http://svn.apache.org/viewvc?rev=1394492&view=rev
Log:
fix for: https://issues.apache.org/jira/browse/AMQCPP-433

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/stomp/StompHelper.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/stomp/StompHelper.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/stomp/StompHelper.cpp?rev=1394492&r1=1394491&r2=1394492&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/stomp/StompHelper.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/stomp/StompHelper.cpp
Fri Oct  5 13:00:09 2012
@@ -55,7 +55,10 @@ void StompHelper::convertProperties( con
     message->setMessageId( convertMessageId( messageId ) );
 
     // the standard JMS headers
-    message->setCorrelationId( StompCommandConstants::HEADER_CORRELATIONID );
+    if( frame->hasProperty( StompCommandConstants::HEADER_CORRELATIONID ) ) {
+        message->setCorrelationId(
+            frame->removeProperty( StompCommandConstants::HEADER_CORRELATIONID ) );
+    }
 
     if( frame->hasProperty( StompCommandConstants::HEADER_EXPIRES ) ) {
         message->setExpiration( Long::parseLong(



Mime
View raw message