Uses of Interface
jakarta.jms.Message
Packages that use Message
Package
Description
The Jakarta Messaging API provides a common way for Java programs to create, send, receive and read an enterprise messaging system's messages.
-
Uses of Message in jakarta.jms
Subinterfaces of Message in jakarta.jmsModifier and TypeInterfaceDescriptioninterfaceABytesMessageobject is used to send a message containing a stream of uninterpreted bytes.interfaceAMapMessageobject is used to send a set of name-value pairs.interfaceAnObjectMessageobject is used to send a message that contains a serializable object in the Java programming language ("Java object").interfaceAStreamMessageobject is used to send a stream of primitive types in the Java programming language.interfaceATextMessageobject is used to send a message containing ajava.lang.String.Methods in jakarta.jms that return MessageModifier and TypeMethodDescriptionJMSContext.createMessage()Creates aMessageobject.Session.createMessage()Creates aMessageobject.JMSConsumer.receive()Receives the next message produced for thisJMSConsumer.JMSConsumer.receive(long timeout) Receives the next message that arrives within the specified timeout interval.MessageConsumer.receive()Receives the next message produced for this message consumer.MessageConsumer.receive(long timeout) Receives the next message that arrives within the specified timeout interval.JMSConsumer.receiveNoWait()Receives the next message if one is immediately available.MessageConsumer.receiveNoWait()Receives the next message if one is immediately available.Sends a request and waits for a reply.Sends a request and waits for a reply.Methods in jakarta.jms with parameters of type MessageModifier and TypeMethodDescriptionvoidCompletionListener.onCompletion(Message message) Notifies the application that the message has been successfully sentvoidCompletionListener.onException(Message message, Exception exception) Notifies user that the specified exception was thrown while attempting to send the specified message.voidPasses a message to the listener.voidPublishes a message to the topic.voidPublishes a message to the topic, specifying delivery mode, priority, and time to live.voidPublishes a message to a topic for an unidentified message producer.voidTopicPublisher.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.Sends a request and waits for a reply.Sends a request and waits for a reply.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 thisJMSProducer.voidMessageProducer.send(Destination destination, Message message) Sends a message to a destination for an unidentified message producer using theMessageProducer's default delivery mode, priority, and time to live.voidMessageProducer.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.voidMessageProducer.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.voidMessageProducer.send(Destination destination, Message message, CompletionListener completionListener) Sends a message to a destination for an unidentified message producer, using theMessageProducer'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.voidSends a message using theMessageProducer's default delivery mode, priority, and time to live.voidSends a message, specifying delivery mode, priority, and time to live.voidMessageProducer.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.voidMessageProducer.send(Message message, CompletionListener completionListener) Sends a message using theMessageProducer'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.voidSends a message to the queue.voidSends a message to the queue, specifying delivery mode, priority, and time to live.voidSends a message to a queue for an unidentified message producer.voidSends a message to a queue for an unidentified message producer, specifying delivery mode, priority and time to live.