activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r517307 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMessageBase.h
Date Mon, 12 Mar 2007 17:51:38 GMT
Author: tabish
Date: Mon Mar 12 10:51:38 2007
New Revision: 517307

URL: http://svn.apache.org/viewvc?view=rev&rev=517307
Log:
http://issues.apache.org/activemq/browse/AMQCPP-30
http://issues.apache.org/activemq/browse/AMQCPP-76

Fix ActiveMQMessageBase copyDataStructure method to copy the properties and other member data

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=517307&r1=517306&r2=517307
==============================================================================
--- 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
Mon Mar 12 10:51:38 2007
@@ -57,6 +57,13 @@
          * @return src - Source Object
          */
         virtual void copyDataStructure( const DataStructure* src ) {
+            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 );
         }
 



Mime
View raw message