You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Greg Griffin (JIRA)" <ji...@apache.org> on 2007/05/23 09:43:35 UTC

[jira] Created: (AMQCPP-116) quick improvements to CMS example code

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.


[jira] Resolved: (AMQCPP-116) quick improvements to CMS example code

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQCPP-116.
---------------------------------

    Resolution: Fixed

Fixed in trunk, also removed the use of sleep to wait for the consumer thread to start and replaced it with a CountDownLatch.  

> 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
>          Components: CMS Impl
>    Affects Versions: 2.0
>         Environment: all
>            Reporter: Greg Griffin
>         Assigned To: Timothy Bish
>            Priority: Minor
>             Fix For: 2.1
>
>
> 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.


[jira] Updated: (AMQCPP-116) quick improvements to CMS example code

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish updated AMQCPP-116:
--------------------------------

      Component/s: CMS Impl
    Fix Version/s: 2.1

> 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
>          Components: CMS Impl
>    Affects Versions: 2.0
>         Environment: all
>            Reporter: Greg Griffin
>         Assigned To: Timothy Bish
>            Priority: Minor
>             Fix For: 2.1
>
>
> 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.


[jira] Assigned: (AMQCPP-116) quick improvements to CMS example code

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish reassigned AMQCPP-116:
-----------------------------------

    Assignee: Timothy Bish  (was: Nathan Mittler)

> 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
>          Components: CMS Impl
>    Affects Versions: 2.0
>         Environment: all
>            Reporter: Greg Griffin
>         Assigned To: Timothy Bish
>            Priority: Minor
>             Fix For: 2.1
>
>
> 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.