Jan 21st, 2008, 06:14 AM
Asynchron Receiving with JMS
I am reading some infos about JMS support in Spring..
and I realized, there is no possibility to use asynchrone receiving,
like the onMessage methode from the MessageListener(JMS API) interface.
In the book there is written, it is straightforward to consume messages synchronously using the receive method on a MessageConsumer.
And my question is now, why I should consume this?
Why there is no support for asynchrone reseiving?
Jan 21st, 2008, 07:37 AM
Read again... Check the reference guide...
Chapter 2.4.4 and chapter 19.
Jan 21st, 2008, 08:53 AM
Spring JMS Support for Async Receiving
As of Spring 2.0, asynchronous receiving of JMS Messages is supported.
Refer to Spring Documentation's JMS Section for Async Reception for an example.