You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2008/02/11 15:28:10 UTC
svn commit: r620490 -
/activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h
Author: tabish
Date: Mon Feb 11 06:28:09 2008
New Revision: 620490
URL: http://svn.apache.org/viewvc?rev=620490&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-166
Fix map copy on outbound send through async transport
Modified:
activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h
Modified: activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h?rev=620490&r1=620489&r2=620490&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h Mon Feb 11 06:28:09 2008
@@ -37,7 +37,7 @@
class ActiveMQMapMessage :
public ActiveMQMessageBase<cms::MapMessage> {
-
+
public:
const static unsigned char ID_ACTIVEMQMAPMESSAGE = 25;
@@ -76,6 +76,13 @@
*/
virtual void copyDataStructure( const DataStructure* src ) {
ActiveMQMessageBase<cms::MapMessage>::copyDataStructure( src );
+
+ const ActiveMQMapMessage* srcMap =
+ dynamic_cast< const ActiveMQMapMessage* >( src );
+
+ if( srcMap != NULL && srcMap->map != NULL ) {
+ this->map = new util::PrimitiveMap( *srcMap->map );
+ }
}
/**