You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Bryan Schmidt (JIRA)" <ji...@apache.org> on 2006/08/17 17:09:23 UTC

[jira] Created: (AMQ-883) NMS asynchronous consumption of queued messages

NMS asynchronous consumption of queued messages
-----------------------------------------------

                 Key: AMQ-883
                 URL: https://issues.apache.org/activemq/browse/AMQ-883
             Project: ActiveMQ
          Issue Type: Bug
          Components: NMS (C# client)
    Affects Versions: 4.0.2
         Environment: Win XP, AMQ 4.0.2 standalone broker, Java message sender (JMS), C# (NMS) receiver
            Reporter: Bryan Schmidt


1.  Several messages are sent to a queue
2.  NMS client subscribes 
3.  Queued messages are not received by NMS client
4.  Another message is sent to the queue (while the NMS client is subscribed)
5.  NMS client receives all messages

Same setup using Java publisher and subscriber behaves properly (queued messages are sent to the subscriber immediately).  

Editting the AsyncConsumeTest unit test can reproduce the problem and cause the test to fail:

In the textMessageSRExample test, move the consumer logic below the producer logic.  (I.e. have the message sent to a queue before the consumer subscribes).


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (AMQ-883) NMS asynchronous consumption of queued messages

Posted by "james strachan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-883?page=all ]

james strachan resolved AMQ-883.
--------------------------------

    Fix Version/s: 4.1
       Resolution: Fixed

Thanks for the suggestions and ideas on how to fix it! :)

I've added a bunch more test cases to AsyncConsumeTest to test out creating the consumer before the send, after it or before the send with adding the listener after it and they all are now working fine.

> NMS asynchronous consumption of queued messages
> -----------------------------------------------
>
>                 Key: AMQ-883
>                 URL: https://issues.apache.org/activemq/browse/AMQ-883
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: NMS (C# client)
>    Affects Versions: 4.0.2
>         Environment: Win XP, AMQ 4.0.2 standalone broker, Java message sender (JMS), C# (NMS) receiver
>            Reporter: Bryan Schmidt
>             Fix For: 4.1
>
>
> 1.  Several messages are sent to a queue
> 2.  NMS client subscribes 
> 3.  Queued messages are not received by NMS client
> 4.  Another message is sent to the queue (while the NMS client is subscribed)
> 5.  NMS client receives all messages
> Same setup using Java publisher and subscriber behaves properly (queued messages are sent to the subscriber immediately).  
> Editting the AsyncConsumeTest unit test can reproduce the problem and cause the test to fail:
> In the textMessageSRExample test, move the consumer logic below the producer logic.  (I.e. have the message sent to a queue before the consumer subscribes).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira