Queue


public interface Queue
extends Destination
Subinterfaces: TemporaryQueue

WebSphere MQ class: MQQueue



java.lang.Object
   |
   +----com.ibm.mq.jms.MQDestination
           |
           +----com.ibm.mq.jms.MQQueue

A Queue object encapsulates a provider-specific queue name. It is the way a client specifies the identity of a queue to JMS methods.

WebSphere MQ constructors

MQQueue *
public MQQueue()

Default constructor for use by the administration tool.

MQQueue *
public MQQueue(String URIqueue)

Create a new MQQueue instance. The string takes a URI format, as described on page (JMSURI).

MQQueue *
public MQQueue(String queueManagerName,
               String queueName)

Methods

getBaseQueueManagerName *
public String getBaseQueueManagerName()

Returns:
the value of the WebSphere MQ Queue manager name.

getBaseQueueName *
public String getBaseQueueName()

Returns:
the value of the WebSphere MQ Queue name.

getQueueName
public java.lang.String getQueueName()
                                 throws JMSException

Get the name of this queue.

Clients that depend upon the name are not portable.

Returns:
the queue name

Throws:
JMSException - if JMS implementation for Queue fails to return the queue name because of an internal error.

getReference *
public Reference getReference() throws NamingException

Create a reference for this queue.

Returns:
a reference for this object

Throws:
NamingException

setBaseQueueManagerName *
public void setBaseQueueManagerName(String x) throws JMSException

Set the value of the WebSphere MQ queue manager name.

Note:
This method should only be used by the administration tool.

setBaseQueueName *
public void setBaseQueueName(String x) throws JMSException

Set the value of the WebSphere MQ queue name.

Note:
This method should only be used by the administration tool. It makes no attempt to decode queue:qmgr:queue format strings.

toString
public java.lang.String toString()

Return a pretty printed version of the queue name.

Returns:
the provider-specific identity values for this queue.

Overrides:
toString in class java.lang.Object



© IBM Corporation 1997, 2002. All Rights Reserved