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()
精彩评论