Uses of Interface
jakarta.jms.Destination
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 Destination in jakarta.jms
Modifier and TypeInterfaceDescriptioninterface
AQueue
object encapsulates a provider-specific queue name.interface
ATemporaryQueue
object is a uniqueQueue
object created for the duration of aConnection
.interface
ATemporaryTopic
object is a uniqueTopic
object created for the duration of aConnection
.interface
ATopic
object encapsulates a provider-specific topic name.Modifier and TypeMethodDescriptionMessageProducer.getDestination()
Gets the destination associated with thisMessageProducer
.Message.getJMSDestination()
Gets theDestination
object for this message.JMSProducer.getJMSReplyTo()
Returns theJMSReplyTo
header value that has been set on thisJMSProducer
.Message.getJMSReplyTo()
Gets theDestination
object to which a reply to this message should be sent.Modifier and TypeMethodDescriptionConnection.createConnectionConsumer
(Destination destination, String messageSelector, ServerSessionPool sessionPool, int maxMessages) Creates a connection consumer for this connection (optional operation) on the specific destination.JMSContext.createConsumer
(Destination destination) Creates aJMSConsumer
for the specified destination.JMSContext.createConsumer
(Destination destination, String messageSelector) Creates aJMSConsumer
for the specified destination, using a message selector.JMSContext.createConsumer
(Destination destination, String messageSelector, boolean noLocal) Creates aJMSConsumer
for the specified destination, specifying a message selector and thenoLocal
parameter.Session.createConsumer
(Destination destination) Creates aMessageConsumer
for the specified destination.Session.createConsumer
(Destination destination, String messageSelector) Creates aMessageConsumer
for the specified destination, using a message selector.Session.createConsumer
(Destination destination, String messageSelector, boolean noLocal) Creates aMessageConsumer
for the specified destination, specifying a message selector and thenoLocal
parameter.Session.createProducer
(Destination destination) Creates aMessageProducer
to send messages to the specified destination.JMSProducer.send
(Destination destination, byte[] body) Send aBytesMessage
with the specified body to the specified destination, using any send options, message properties and message headers that have been defined on thisJMSProducer
.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
.JMSProducer.send
(Destination destination, Serializable body) Send anObjectMessage
with the specified body to the specified destination, using any send options, message properties and message headers that have been defined on thisJMSProducer
.JMSProducer.send
(Destination destination, String body) Send aTextMessage
with the specified body to the specified destination, using any send options, message properties and message headers that have been defined on thisJMSProducer
.JMSProducer.send
(Destination destination, Map<String, Object> body) Send aMapMessage
with the specified body to the specified destination, using any send options, message properties and message headers that have been defined on thisJMSProducer
.void
MessageProducer.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.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
MessageProducer.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.void
Message.setJMSDestination
(Destination destination) Sets theDestination
object for this message.JMSProducer.setJMSReplyTo
(Destination replyTo) Specifies that messages sent using thisJMSProducer
will have theirJMSReplyTo
header value set to the specifiedDestination
object.void
Message.setJMSReplyTo
(Destination replyTo) Sets theDestination
object to which a reply to this message should be sent.