What really happens under the hood when I install a MessageListener in my MessageConsumer queue object. Does the MessageConsumer object create some kind of poll on stage or is this a real push made by the JMS server?
Java Messaging Service (O'Reilly Java Series) by David A. Chappell, Richard Monson-Höfel, and Mark Richards, p10 CHAPTER 1: Point-to-Point
The point-to-point messaging model has traditionally been a pull-based or poll-based model where messages are requested from a queue rather than automatically pushed to a client.
http://docs.oracle.com/javaee/1.4/tutorial/doc/JMS4.html#wp79175
When message delivery begins, the JMS provider automatically calls the message receiver using the Message method whenever a message is sent.
Thanks Kod
source
share