简体   繁体   中英

How to implement Spring JMS Window processing?

I need to read messages from the JMS queue by batches (I have max number of records and time window parameters, whichever comes first).

Then I need to process the messages and do bulk updates & inserts into the DB.

How to implement this using Spring?

I was thinking about combining Spring Batch and JMS, but I am not sure if Spring Batch can work without stopping, I need to listen the queue indefinitely. I have the impression that Spring Batch is not for this streaming use case.

I know that in Kafka there is ConcurrentKafkaListenerContainerFactory where you can set batch processing to true, but unfortunately we don't use Kafka for now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM