activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1026040 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp
Date Thu, 21 Oct 2010 15:55:29 GMT
Author: tabish
Date: Thu Oct 21 15:55:29 2010
New Revision: 1026040

URL: http://svn.apache.org/viewvc?rev=1026040&view=rev
Log:
fix for: https://issues.apache.org/activemq/browse/AMQCPP-323

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp?rev=1026040&r1=1026039&r2=1026040&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp
Thu Oct 21 15:55:29 2010
@@ -112,7 +112,6 @@ namespace core{
         unsigned int closeTimeout;
         unsigned int producerWindowSize;
 
-        cms::ExceptionListener* defaultListener;
         std::auto_ptr<PrefetchPolicy> defaultPrefetchPolicy;
         std::auto_ptr<RedeliveryPolicy> defaultRedeliveryPolicy;
 
@@ -137,7 +136,6 @@ namespace core{
                              sendTimeout( 0 ),
                              closeTimeout( 15000 ),
                              producerWindowSize( 0 ),
-                             defaultListener( NULL ),
                              defaultPrefetchPolicy( NULL ),
                              defaultRedeliveryPolicy( NULL ),
                              exceptionListener( NULL ) {
@@ -953,12 +951,12 @@ const std::string& ActiveMQConnection::g
 
 ////////////////////////////////////////////////////////////////////////////////
 void ActiveMQConnection::setExceptionListener( cms::ExceptionListener* listener ) {
-    this->config->defaultListener = listener;
+    this->config->exceptionListener = listener;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
 cms::ExceptionListener* ActiveMQConnection::getExceptionListener() const {
-    return this->config->defaultListener;
+    return this->config->exceptionListener;
 }
 
 ////////////////////////////////////////////////////////////////////////////////



Mime
View raw message