开发者

Spring JMS consumer pull

开发者 https://www.devze.com 2023-03-06 07:19 出处:网络
I need to implemt a pulling consumer. Most of the examples I see are the producer pushing a message to the consumer; Assuming consumer is always up.

I need to implemt a pulling consumer. Most of the examples I see are the producer pushing a message to the consumer; Assuming consumer is always up. I want the producer to push messages to a queue and the consumer to consume those messages on its own schedule. My consumer has a off hours calender and cannot process requests d开发者_如何学编程uring off hours.

How would I configure that in spring.

TIA

Raghu


Use message driven POJOs and JMS.


The onMessage is a server push, The message is processed as soon as it is delivered to the client. I want the client to decide when it wants to pull the message and process it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号