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/12/11 17:14:55 UTC

svn commit: r725727 - /activemq/activemq-cpp/trunk/src/examples/topics/chat/Chat.cpp

Author: tabish
Date: Thu Dec 11 08:14:55 2008
New Revision: 725727

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

Register Chat client as an exception listener on the Connection.

Modified:
    activemq/activemq-cpp/trunk/src/examples/topics/chat/Chat.cpp

Modified: activemq/activemq-cpp/trunk/src/examples/topics/chat/Chat.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/examples/topics/chat/Chat.cpp?rev=725727&r1=725726&r2=725727&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/examples/topics/chat/Chat.cpp (original)
+++ activemq/activemq-cpp/trunk/src/examples/topics/chat/Chat.cpp Thu Dec 11 08:14:55 2008
@@ -77,6 +77,8 @@
         this->connection.reset(
             connectionFactory->createConnection( this->getUsername(), this->getPassword() ) );
 
+        this->connection->setExceptionListener( this );
+
     } catch( cms::CMSException& ex ) {
         std::cout << "==================================================" << std::endl;
         std::cout << "= Failed to Connect To Broker, Is it Running?    =" << std::endl;