Search code examples
springrabbitmqamqp

Spring Batch with AMQP RabbitMQ


I'd like to use String Batch to get the data from RabbitMQ / AMQP. I want to load 100 messages (or if 100 doesn't come, the number of messsages camed after some timeout) and then put it into the list. I have a RabbitMQ working, i'd just like to get the data from it in packages per 100 and concentrate it to the list.

I have read about Spring Batch, i found that this can read from files (ex. CSV) using org.springframework.batch.item.file.FlatFileItemReader. But I dont know how to read from a Rabbit Queue? Or is it even possible?

Kind Regards,

Rafał


Solution

  • Have you taken a look at Spring-AMQP?