activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Santosh Banerjee (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQ-3657) Messages getting dispatched in a single thread even with multiple consumer sessions if prefetchPolicy.queuePrefetch is more than 1
Date Sat, 07 Jan 2012 06:23:39 GMT
Messages getting dispatched in a single thread even with multiple consumer sessions if prefetchPolicy.queuePrefetch
is more than 1
----------------------------------------------------------------------------------------------------------------------------------

                 Key: AMQ-3657
                 URL: https://issues.apache.org/jira/browse/AMQ-3657
             Project: ActiveMQ
          Issue Type: Bug
          Components: JMS client
    Affects Versions: 5.5.1
         Environment: Windows XP/\
\,

























































            Reporter: Santosh Banerjee


If the prefetch limit is more than 1, ActiveMQ would tend to dispatch the messages to a single
consumer session, even though there are multiple active consumer sessions (each with a different
MessageConsumer/Listener on the same queue) available.

So messages are getting processed sequentially in a SINGLE thread,if the prefetch limit is
> 1

But if we set the prefetch to 1 explicitly, e.g. by the following code, concurrent processing
happens as expected.

((ActiveMQConnectionFactory)connectionFactory).getPrefetchPolicy().setQueuePrefetch(1);


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message