activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nmitt...@apache.org
Subject svn commit: r502083 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/commands/AckCommand.h
Date Thu, 01 Feb 2007 02:36:07 GMT
Author: nmittler
Date: Wed Jan 31 18:36:06 2007
New Revision: 502083

URL: http://svn.apache.org/viewvc?view=rev&rev=502083
Log:
[AMQCPP-62] fixing validation when receiving ack message 

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/commands/AckCommand.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/commands/AckCommand.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/commands/AckCommand.h?view=diff&rev=502083&r1=502082&r2=502083
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/commands/AckCommand.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/commands/AckCommand.h
Wed Jan 31 18:36:06 2007
@@ -94,18 +94,13 @@
             // Make sure the message is an ACK message.
             bool isAck = frame.getCommand() == 
                 CommandConstants::toString( CommandConstants::ACK );
-                
-            // Make sure it has a transaction ID header.
-            bool hasTransactionId = frame.getProperties().hasProperty(
-                   CommandConstants::toString( 
-                       CommandConstants::HEADER_TRANSACTIONID ) );
                        
             // Make sure it has a message ID header.
             bool hasMessageId = frame.getProperties().hasProperty(
                    CommandConstants::toString( 
                        CommandConstants::HEADER_MESSAGEID ) );
             
-            if( isAck && hasTransactionId && hasMessageId )
+            if( isAck && hasMessageId )
             {
                 return true;
             }



Mime
View raw message