This illustration shows the use case Receive a Message Synchronously Using a Message Consumer of the class Message Consumer in the JMS Operational Interface.
NOTE: Of the two ways to receive a message, this is the alternative referred to as "a."
The method used is receive,
specifying timeout.
When you receive a message, you may optionally specify to Wait Forever and the Timeout.