Is there a way using which we can stop the Camel route if we don't have any more message in ActiveMQ? My required scenario.
- Fetch all the message from ActiveMQ queue and process them.
- Poll for 2-3 more times to check if we have any other new message, is yes execute step #1.
- If no message in present stop the route and start it back after say 5 min (which I guess can be achieved by Polling Strategy).