Start the connection to which this consumer’s session belongs.
The connection’s start method
begins the flow of messages from the message broker to your message consumer:
Once the connection is started, the Message Queue client runtime will
call your message listener’s onMessage method
each time it has a message to deliver to this consumer.
To ensure that no messages are lost before your consumer is ready to
receive them, it is important not to start the connection until after you
have created the message listener and associated it with the consumer. If
the connection is already started, you should stop it before creating an asynchronous
consumer, then start it again when the consumer is ready to begin processing.
Setting a consumer’s message listener to null removes
any message listener previously associated with it:
The consumer’s getMessageListener method
returns its current message listener (or null if there
MyMessageListener myListener = myConsumer.getMessageListener();