## Uses of Interface
javax.jms.Destination

Packages that use Destination
Package | Description
--- | ---
com.sun.messaging | Provides the Oracle GlassFish(tm) Server Message Queue public classes.
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 Destination in com.sun.messaging

Classes in com.sun.messaging that implement Destination
Modifier and Type | Class and Description
--- | ---
`class` | `BasicQueue` A `BasicQueue` represents an identity of a repository of messages used in the JMS Point-To-Point messaging domain.
`class` | `BasicTopic` A `BasicTopic` represents an identity of a repository of messages used in the JMS Publish/Subscribe messaging domain.
`class` | `Destination` A `Destination` encapsulates Sun MQ specific configuration information for Sun MQ `Destination` objects.
`class` | `Queue` A `Queue` represents an identity of a repository of messages used in the JMS Point-To-Point messaging domain.
`class` | `Topic` A `Topic` represents an identity of a repository of messages used in the JMS Publish/Subscribe messaging domain.

### Uses of Destination in javax.jms

Subinterfaces of Destination in javax.jms
Modifier and Type | Interface and Description
--- | ---
`interface` | `Queue` A `Queue` object encapsulates a provider-specific queue name.
`interface` | `TemporaryQueue` A `TemporaryQueue` object is a unique `Queue` object created for the duration of a `Connection`.
`interface` | `TemporaryTopic` A `TemporaryTopic` object is a unique `Topic` object created for the duration of a `Connection`.
`interface` | `Topic` A `Topic` object encapsulates a provider-specific topic name.

Methods in javax.jms that return Destination
Modifier and Type | Method and Description
--- | ---
`Destination` | MessageProducer.`getDestination()` Gets the destination associated with this `MessageProducer`.
`Destination` | Message.`getJMSDestination()` Gets the `Destination` object for this message.
`Destination` | Message.`getJMSReplyTo()` Gets the `Destination` object to which a reply to this message should be sent.

Methods in javax.jms with parameters of type Destination
Modifier and Type | Method and Description
--- | ---
`ConnectionConsumer` | Connection.`createConnectionConsumer(Destination destination, java.lang.String messageSelector, ServerSessionPool sessionPool, int maxMessages)` Creates a connection consumer for this connection (optional operation).
`MessageConsumer` | Session.`createConsumer(Destination destination)` Creates a `MessageConsumer` for the specified destination.
`MessageConsumer` | Session.`createConsumer(Destination destination, java.lang.String messageSelector)` Creates a `MessageConsumer` for the specified destination, using a message selector.
`MessageConsumer` | Session.`createConsumer(Destination destination, java.lang.String messageSelector, boolean NoLocal)` Creates `MessageConsumer` for the specified destination, using a message selector.
`MessageProducer` | Session.`createProducer(Destination destination)` Creates a `MessageProducer` to send messages to the specified destination.
`void` | MessageProducer.`send(Destination destination, Message message)` Sends a message to a destination for an unidentified message producer.
`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` | Message.`setJMSDestination(Destination destination)` Sets the `Destination` object for this message.
`void` | Message.`setJMSReplyTo(Destination replyTo)` Sets the `Destination` object to which a reply to this message should be sent.