开发者

Springframework 2.5 SimpleMessageListenerContainer message received callback?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜