Reputation: 590
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ł
Upvotes: 1
Views: 8322
Reputation: 387
Here is a Spring Batch AMQP ItemReader / ItemWriter implementation. https://dzone.com/articles/batch-processing-with-spring-batch-and-amqp-easier
Upvotes: 1
Reputation: 26
Have you taken a look at Spring-AMQP?
Upvotes: 1