activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r724378 - /activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/OpenWireConnector.cpp
Date Mon, 08 Dec 2008 15:14:01 GMT
Author: tabish
Date: Mon Dec  8 07:14:00 2008
New Revision: 724378

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

implement response to KeepAliveInfo Commands.

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/OpenWireConnector.cpp

Modified: activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/OpenWireConnector.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/OpenWireConnector.cpp?rev=724378&r1=724377&r2=724378&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/OpenWireConnector.cpp
(original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/OpenWireConnector.cpp
Mon Dec  8 07:14:00 2008
@@ -47,6 +47,7 @@
 #include <activemq/connector/openwire/commands/ConnectionId.h>
 #include <activemq/connector/openwire/commands/DestinationInfo.h>
 #include <activemq/connector/openwire/commands/ExceptionResponse.h>
+#include <activemq/connector/openwire/commands/KeepAliveInfo.h>
 #include <activemq/connector/openwire/commands/Message.h>
 #include <activemq/connector/openwire/commands/MessagePull.h>
 #include <activemq/connector/openwire/commands/MessageAck.h>
@@ -1430,6 +1431,16 @@
         } else if( typeid( *command ) == typeid( commands::BrokerInfo ) ) {
             this->brokerInfo =
                 dynamic_cast<commands::BrokerInfo*>( command );
+        } else if( typeid( *command ) == typeid( commands::KeepAliveInfo ) ) {
+
+            if( command->isResponseRequired() ) {
+                command->setResponseRequired( false );
+
+                oneway( info );
+            }
+
+            delete command;
+
         } else if( typeid( *command ) == typeid( commands::ShutdownInfo ) ) {
 
             try {



Mime
View raw message