## Uses of Interface
javax.jms.MessageListener

- Packages that use MessageListener
  Package | Description
  --- | ---
  javax.jms | The Java Message Service (JMS) API provides a common way for Java programs to create, send, receive and read an enterprise messaging system's messages.

- - ### Uses of MessageListener in javax.jms

    Methods in javax.jms that return MessageListener
    Modifier and Type | Method and Description
    --- | ---
    `MessageListener` | Session.`getMessageListener()` Returns the session's distinguished message listener (optional).
    `MessageListener` | MessageConsumer.`getMessageListener()` Gets the `MessageConsumer`'s `MessageListener`.
    `MessageListener` | JMSConsumer.`getMessageListener()` Gets the `JMSConsumer`'s `MessageListener`.

    Methods in javax.jms with parameters of type MessageListener
    Modifier and Type | Method and Description
    --- | ---
    `void` | Session.`setMessageListener(MessageListener listener)` Sets the session's distinguished message listener (optional).
    `void` | MessageConsumer.`setMessageListener(MessageListener listener)` Sets the `MessageConsumer`'s `MessageListener`.
    `void` | JMSConsumer.`setMessageListener(MessageListener listener)` Sets the `JMSConsumer`'s `MessageListener`.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.