34.3. Methods

The Queue interface inherits from the interface javax.jms.Destination, which has no fields or methods. The following methods are defined in the interface javax.jms.Queue.

getQueueName

public java.lang.String getQueueName()

Gets the name of this queue.

Clients that depend upon the name are not portable.

RETURNS:

the queue name

THROWS:

JMSException if the JMS provider implementation of Queue fails to return the queue name due to some internal error

toString

public java.lang.String toString()

Returns a string representation of this object.

OVERRIDES:

java.lang.Object.toString() in class java.lang.Object

RETURNS:

the provider-specific identity values for this queue

Get Java™ Message Service API Tutorial and Reference: Messaging for the J2EE™ Platform 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.