activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r725727 - /activemq/activemq-cpp/trunk/src/examples/topics/chat/Chat.cpp
Date Thu, 11 Dec 2008 16:14:55 GMT
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;



Mime
View raw message