activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Griffin (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQCPP-116) quick improvements to CMS example code
Date Wed, 23 May 2007 07:43:35 GMT
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.


Mime
View raw message