activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Drizzt321 <>
Subject Re: Prefetch=0 not allowed with Spring MDP?
Date Fri, 02 Oct 2009 18:31:19 GMT

xbryan wrote:
> On the ActiveMQ pages, it states that "When using Spring JMS and
> MessageDrivenPojo, you cannot use a prefetch of 0, so use 1 instead."
> Is this old information? There seems to be a fair bit of old information
> on the ActiveMQ website, so I can't tell if this is still correct. I am
> using prefetch=0 with Spring MDP, and things seem to work. I have mostly
> slow consumers, so I want messages distributed as consumers free up.
> The only problem I notice is that ActiveMQ takes forever to shutdown when
> prefetch=0.

I never noticed this in the docs, but I'm currently using prefetch=0 with
Spring's MDP. In general, when I try and stop the MDP's via calls to stop()
and then shutdown(), it seems to hang and appears to wait on some kind of
shared lock. 
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message