Announcement Announcement Module
No announcement yet.
Messages struck on queue in ActiveMQ some times Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Messages struck on queue in ActiveMQ some times


    Some time the consumers (Spring Message Listener) could not get messages from ActiveMQ queue. after running for couple of days.

    this might be other way too..queue might not deliver messages to consumers.

    I hope nothing wrong with Spring Default Message Listeners..!

    So in order to PULL messages from queue we need to set the queue prefetch policy = 0 in activemq connection URL.

    But here is a limitation, If you are using a spring JMS message Listener API, You can not supply a 0 for prefetch. in such cases you can only give 1

    WHY WHY? Please explain.

    here is useful links on this issue and this limitation...