This illustration shows the use case Two Ways to Specify a Message Listener of the class Message Consumer in the JMS Operational Interface.

NOTE: Of the two ways to specify a message listener, this is the alternative referred to as "a."

The method used is setMessageListener, at the message consumer.

To specify a Message Listener, you must specify a message listener.