开发者

Springframework 2.5 SimpleMessageListenerContainer message received callback?

开发者 https://www.devze.com 2022-12-10 17:12 出处:网络
I have been reading up on the SimpleMessageListenerContainer to ease the pain of subscribing to a topic asynchronously. However, I cannot find a way to trigger a callback or loop through the messages

I have been reading up on the SimpleMessageListenerContainer to ease the pain of subscribing to a topic asynchronously. However, I cannot find a way to trigger a callback or loop through the messages that the container has received. Can someone point me in the righ开发者_JS百科t direction (documentation, examples, etc)?


See 19.4.2. Asynchronous Reception - Message-Driven POJOs section of the (2.5+) reference.

You need to create a message listener bean which implements MessageListener which has a method called onMessage()

0

精彩评论

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