activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r531219 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMessageBase.h
Date Sun, 22 Apr 2007 16:12:55 GMT
Author: tabish
Date: Sun Apr 22 09:12:54 2007
New Revision: 531219

URL: http://svn.apache.org/viewvc?view=rev&rev=531219
Log:
https://issues.apache.org/activemq/browse/AMQCPP-105

Fix so that now the DeliverMode Check compares against cms::DeliveryMode::PERSISTENT

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMessageBase.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMessageBase.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMessageBase.h?view=diff&rev=531219&r1=531218&r2=531219
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMessageBase.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMessageBase.h
Sun Apr 22 09:12:54 2007
@@ -25,6 +25,7 @@
 #include <activemq/core/ActiveMQAckHandler.h>
 #include <activemq/util/Date.h>
 #include <activemq/util/PrimitiveMap.h>
+#include <cms/DeliveryMode.h>
 
 namespace activemq{
 namespace connector{
@@ -57,13 +58,13 @@
          * @return src - Source Object
          */
         virtual void copyDataStructure( const DataStructure* src ) {
-            const ActiveMQMessageBase<T>* message = 
+            const ActiveMQMessageBase<T>* message =
                 dynamic_cast< const ActiveMQMessageBase<T>* >( src );
-            
+
             this->properties.copy( message->properties );
             this->setAckHandler( message->getAckHandler() );
             this->setRedeliveryCount( message->getRedeliveryCount() );
-            
+
             openwire::commands::Message::copyDataStructure( src );
         }
 
@@ -497,7 +498,7 @@
          * @param mode - DeliveryMode enumerated value.
          */
         virtual void setCMSDeliveryMode( int mode ) {
-            this->setPersistent( mode != 0 );
+            this->setPersistent( mode == (int)cms::DeliveryMode::PERSISTENT );
         }
 
         /**



Mime
View raw message