I have this situation:
1 - I want to poll a jms/activemq queue every x minutes.
2 - Execute some business logic
3 - On success just log it
4 - On failure, send back to the queue for a retry of the route (1-3)
I've implemented this using a route like so:
In the "someBusinessLogicBean" I use the consumertemplate and producertemplate
to read and write back to the same queue.
My concern is I'm going to get into a "race" condition trying to read/write back to the
same queue.
Is there a better strategy for this "retry" technique? I want to apply some intelligence to the retry.
Thank you