quick improvements to CMS example code
--------------------------------------
Key: AMQCPP-116
URL: https://issues.apache.org/activemq/browse/AMQCPP-116
Project: ActiveMQ C++ Client
Issue Type: Improvement
Affects Versions: 2.0
Environment: all
Reporter: Greg Griffin
Assigned To: Nathan Mittler
Priority: Minor
In the CMS example code, http://activemq.apache.org/cms/example.html :
* the producer's counting starts at zero, but the consumer's starts at 1, so
what's printed makes it seem like the code somehow sends an extra message. Can
fix by:
printf( "Sent message #%d from thread %s\n", ix+1, threadIdStr.c_str()
);
^^
or change how the loop is done
* in snippet:
// Give the consumer a but to start up.
Thread::sleep( 75 );
"but" should be "bit"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.