How can I create a Camel consumer to periodically drain an A-MQ queue?

Solution In Progress - Updated -

Issue

How can I meet the following Requirement?

  • A consumer shall periodically read all messages in a queue. After draining the queue, the consumer shall stop reading messages until a trigger causes the consumer to read all messages from the queue again.

Environment

  • Red Hat JBoss Fuse
    • 6.2.x
  • Camel
    • 2.15.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.