Author: tabish
Date: Thu Oct 21 15:57:58 2010
New Revision: 1026041

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

Modified:
    
activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp

Modified: 
activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp
URL: 
http://svn.apache.org/viewvc/activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp?rev=1026041&r1=1026040&r2=1026041&view=diff
==============================================================================
--- 
activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp
 (original)
+++ 
activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp
 Thu Oct 21 15:57:58 2010
@@ -109,7 +109,6 @@ namespace core{
         unsigned int closeTimeout;
         unsigned int producerWindowSize;
 
-        cms::ExceptionListener* defaultListener;
         std::auto_ptr<PrefetchPolicy> defaultPrefetchPolicy;
         std::auto_ptr<RedeliveryPolicy> defaultRedeliveryPolicy;
 
@@ -130,7 +129,6 @@ namespace core{
                              sendTimeout( 0 ),
                              closeTimeout( 15000 ),
                              producerWindowSize( 0 ),
-                             defaultListener( NULL ),
                              defaultPrefetchPolicy( NULL ),
                              defaultRedeliveryPolicy( NULL ),
                              exceptionListener( NULL ) {
@@ -970,12 +968,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;
 }
 
 
////////////////////////////////////////////////////////////////////////////////


Reply via email to