You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "James Strachan (JIRA)" <ji...@apache.org> on 2008/08/29 14:24:52 UTC

[jira] Commented: (AMQ-1920) MessageAvailableListener doesn't work with prefetchSize set to zero

    [ https://issues.apache.org/activemq/browse/AMQ-1920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45240#action_45240 ] 

James Strachan commented on AMQ-1920:
-------------------------------------

A work around is to use a prefetch of 1. I don't see the huge need for supporting both prefetch size of zero and to support a notification of messages being available. Afterall the only reason to use a prefetch of zero is if you are gonna block a thread in a receive() method anyway.

> MessageAvailableListener doesn't work with prefetchSize set to zero
> -------------------------------------------------------------------
>
>                 Key: AMQ-1920
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1920
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 4.1.1, 5.1.0
>         Environment: Broker running ActiveMQ 4.1.1
> Client/Consumer tested with AMQ 4.1.1 and 5.1.0
>            Reporter: Sebastian Riedel
>            Priority: Critical
>             Fix For: 4.1.1, 5.1.0
>
>
> The MessageAvailableListener doesn't trigger his event, when prefetchSize is set to zero, although messages are in queue (but because of prefetchSize = zero not dispatched). I understand why the complete asynchronous MessageListener is not allowed to be used with prefetchSize of zero, but in my opinion the AvailableListener should work.
> Since there is no other possibilty to check for the availability of a new message ( the Queuebrowser is for this aim to slow, because it produces massive traffic) this is a critical issue in my case, also because i can't use JMX to determine e.g. the  QueueSize to trigger a MessageAvailableEvent myself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.