Name

Destination

Synopsis

A Destination represents a delivery address for a message. This interface is simply a marker interface, without any methods or members, since JMS doesn’t attempt to define an addressing syntax. Implementors of JMS providers will need to provide implementations of this interface that also define their message addressing syntax. Destinations might be published by a JMS provider using JNDI. In this case, the JMS client would need to assemble the name of the queue in the syntax expected by the provider, and then do a JNDI lookup to get a reference to the Destination.

public interface Destination {
}

Implementations

Queue, Topic

Passed To

javax.jms.Message.{setJMSDestination(), setJMSReplyTo()}

Returned By

javax.jms.Message.{getJMSDestination(), getJMSReplyTo()}

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.