You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by nm...@apache.org on 2007/02/01 03:36:07 UTC
svn commit: r502083 -
/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/commands/AckCommand.h
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;
}