| Package | Description | 
|---|---|
| jakarta.jms | 
The Jakarta Messaging API provides a common way for Java programs to create, send, receive and read an enterprise messaging system's messages. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | BytesMessageA  BytesMessageobject is used to send a message containing a stream of uninterpreted bytes. | 
| interface  | MapMessageA  MapMessageobject is used to send a set of name-value pairs. | 
| interface  | ObjectMessageAn  ObjectMessageobject is used to send a message that contains a serializable object in the Java programming
 language ("Java object"). | 
| interface  | StreamMessageA  StreamMessageobject is used to send a stream of primitive types in the Java programming language. | 
| interface  | TextMessageA  TextMessageobject is used to send a message containing ajava.lang.String. | 
| Modifier and Type | Method and Description | 
|---|---|
| Message | Session. createMessage()Creates a  Messageobject. | 
| Message | JMSContext. createMessage()Creates a  Messageobject. | 
| Message | MessageConsumer. receive()Receives the next message produced for this message consumer. | 
| Message | JMSConsumer. receive()Receives the next message produced for this  JMSConsumer. | 
| Message | MessageConsumer. receive(long timeout)Receives the next message that arrives within the specified timeout interval. | 
| Message | JMSConsumer. receive(long timeout)Receives the next message that arrives within the specified timeout interval. | 
| Message | MessageConsumer. receiveNoWait()Receives the next message if one is immediately available. | 
| Message | JMSConsumer. receiveNoWait()Receives the next message if one is immediately available. | 
| Message | TopicRequestor. request(Message message)Sends a request and waits for a reply. | 
| Message | QueueRequestor. request(Message message)Sends a request and waits for a reply. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | CompletionListener. onCompletion(Message message)Notifies the application that the message has been successfully sent | 
| void | CompletionListener. onException(Message message,
           Exception exception)Notifies user that the specified exception was thrown while attempting to send the specified message. | 
| void | MessageListener. onMessage(Message message)Passes a message to the listener. | 
| void | TopicPublisher. publish(Message message)Publishes a message to the topic. | 
| void | TopicPublisher. publish(Message message,
       int deliveryMode,
       int priority,
       long timeToLive)Publishes a message to the topic, specifying delivery mode, priority, and time to live. | 
| void | TopicPublisher. publish(Topic topic,
       Message message)Publishes a message to a topic for an unidentified message producer. | 
| void | TopicPublisher. publish(Topic topic,
       Message message,
       int deliveryMode,
       int priority,
       long timeToLive)Publishes a message to a topic for an unidentified message producer, specifying delivery mode, priority and time to
 live. | 
| Message | TopicRequestor. request(Message message)Sends a request and waits for a reply. | 
| Message | QueueRequestor. request(Message message)Sends a request and waits for a reply. | 
| void | MessageProducer. send(Destination destination,
    Message message)Sends a message to a destination for an unidentified message producer using the  MessageProducer's default
 delivery mode, priority, and time to live. | 
| JMSProducer | JMSProducer. send(Destination destination,
    Message message)Sends a message to the specified destination, using any send options, message properties and message headers that
 have been defined on this  JMSProducer. | 
| void | MessageProducer. send(Destination destination,
    Message message,
    CompletionListener completionListener)Sends a message to a destination for an unidentified message producer, using the  MessageProducer's default
 delivery mode, priority, and time to live, performing part of the work involved in sending the message in a separate
 thread and notifying the specified CompletionListener when the operation has completed. | 
| void | MessageProducer. send(Destination destination,
    Message message,
    int deliveryMode,
    int priority,
    long timeToLive)Sends a message to a destination for an unidentified message producer, specifying delivery mode, priority and time to
 live. | 
| void | MessageProducer. send(Destination destination,
    Message message,
    int deliveryMode,
    int priority,
    long timeToLive,
    CompletionListener completionListener)Sends a message to a destination for an unidentified message producer, specifying delivery mode, priority and time to
 live, performing part of the work involved in sending the message in a separate thread and notifying the specified
 CompletionListener when the operation has completed. | 
| void | QueueSender. send(Message message)Sends a message to the queue. | 
| void | MessageProducer. send(Message message)Sends a message using the  MessageProducer's default delivery mode, priority, and time to live. | 
| void | MessageProducer. send(Message message,
    CompletionListener completionListener)Sends a message using the  MessageProducer's default delivery mode, priority, and time to live, performing
 part of the work involved in sending the message in a separate thread and notifying the specified
 CompletionListener when the operation has completed. | 
| void | QueueSender. send(Message message,
    int deliveryMode,
    int priority,
    long timeToLive)Sends a message to the queue, specifying delivery mode, priority, and time to live. | 
| void | MessageProducer. send(Message message,
    int deliveryMode,
    int priority,
    long timeToLive)Sends a message, specifying delivery mode, priority, and time to live. | 
| void | MessageProducer. send(Message message,
    int deliveryMode,
    int priority,
    long timeToLive,
    CompletionListener completionListener)Sends a message, specifying delivery mode, priority and time to live, performing part of the work involved in sending
 the message in a separate thread and notifying the specified CompletionListener when the operation has
 completed. | 
| void | QueueSender. send(Queue queue,
    Message message)Sends a message to a queue for an unidentified message producer. | 
| void | QueueSender. send(Queue queue,
    Message message,
    int deliveryMode,
    int priority,
    long timeToLive)Sends a message to a queue for an unidentified message producer, specifying delivery mode, priority and time to live. | 
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.