Get all messages from a queue

Yes, I could think of same approach but then the below Issues might encounter.

  1. On each call from consume operation, does it do bind and unbind? or the session persists for some time? Will it be a problem from soalce Infra , If the consume operations called multiple times in a loop?
  2. It could fail , If there is a time out from front end application while we are processing in mulesoft.
  3. Error handling would be much difficult. Depending on the load.

I don’t think it is even possible with AMQ, I totally agree Ideal case should be from a db but here we need process this data from downstream applications and put in to queue