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."
> http://activemq.apache.org/what-is-the-prefetch-limit-for.html
> 
> 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: 
http://www.nabble.com/Prefetch%3D0-not-allowed-with-Spring-MDP--tp25707024p25720413.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to