activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r903783 - /activemq/activemq-cpp/trunk/activemq-cpp/src/examples/advisories/AdvisoryConsumer.cpp
Date Wed, 27 Jan 2010 18:51:50 GMT
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" ) ) {



Mime
View raw message