This illustration shows the use case Receive a Message Synchronously Using a Message Consumer of the class Message Consumer in the JMS Operational Interface.
There are two ways to receive a message. You can:
Receive a Message Specifying Timeout (links to figure 16-29)
Receive a Message Without Waiting (links to figure 16-30)