Rafał
Rafał

Reputation: 590

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ł

Upvotes: 1

Views: 8322

Answers (2)

Sujith Nair
Sujith Nair

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

Related Questions