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 2010/01/27 19:51:50 UTC

svn commit: r903783 - /activemq/activemq-cpp/trunk/activemq-cpp/src/examples/advisories/AdvisoryConsumer.cpp

Author: tabish
Date: Wed Jan 27 18:51:49 2010
New Revision: 903783

URL: http://svn.apache.org/viewvc?rev=903783&view=rev
Log:
Update the example code to show more on digesting the Advisory Messages.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/examples/advisories/AdvisoryConsumer.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/examples/advisories/AdvisoryConsumer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/examples/advisories/AdvisoryConsumer.cpp?rev=903783&r1=903782&r2=903783&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/examples/advisories/AdvisoryConsumer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/examples/advisories/AdvisoryConsumer.cpp Wed Jan 27 18:51:49 2010
@@ -77,6 +77,8 @@
         if( amqMessage != NULL && amqMessage->getDataStructure() != NULL ) {
             const ProducerInfo* info = dynamic_cast<const ProducerInfo*>(
                 amqMessage->getDataStructure().get() );
+
+            std::cout << "Got ProducerInfo for producer: " << info->getProducerId()->toString() << std::endl;
         }
 
         if( message->propertyExists( "producerCount" ) ) {