[
https://issues.apache.org/jira/browse/AMQ-3657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13193755#comment-13193755
]
Santosh Banerjee commented on AMQ-3657:
---------------------------------------
My bad,
I should have looked at this too
http://activemq.apache.org/i-do-not-receive-messages-in-my-second-consumer.html
> 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