com.ibm.mq.jms
Class MQQueue

java.lang.Object
  |
  +--com.ibm.mq.jms.MQDestination
        |
        +--com.ibm.mq.jms.MQQueue
All Implemented Interfaces:
javax.jms.Destination, JMSDestination, javax.jms.Queue, javax.naming.Referenceable, java.io.Serializable
Direct Known Subclasses:
MQTemporaryQueue

public class MQQueue
extends MQDestination
implements javax.jms.Queue, javax.naming.Referenceable, java.io.Serializable

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

See Also:
Serialized Form

Field Summary
   
Constructor Summary
MQQueue(java.lang.String queueName)
          Creates a new MQQueue object.
MQQueue(java.lang.String queueManagerName, java.lang.String queueName)
          Creates a new MQQueue object.
 
Method Summary
 java.lang.String getQueueName()
          Gets the name of this queue.
 java.lang.String toString()
          Gets a version of the queue name.
 
Methods inherited from class com.ibm.mq.jms.MQDestination
getCCSID, getDescription, getEncoding, getExpiry, getFailIfQuiesce, getPersistence, getPriority, getProperty, getStringFromDestination, getTargetClient, setCCSID, setDescription, setEncoding, setExpiry, setFailIfQuiesce, setPersistence, setPriority, setProperty, setTargetClient
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MQQueue

public MQQueue(java.lang.String queueName)
        throws javax.jms.JMSException
Creates a new MQQueue object.

Parameters:
queueName - is one of:
Throws:
javax.jms.JMSException - if the queue or queue manager names are invalid.

MQQueue

public MQQueue(java.lang.String queueManagerName,
               java.lang.String queueName)
        throws javax.jms.JMSException
Creates a new MQQueue object.

Parameters:
queueManagerName - the name of the queue manager
queueName - the name of the queue
Throws:
javax.jms.JMSException - if the either name is invalid.
Method Detail

getQueueName

public java.lang.String getQueueName()
Gets the name of this queue. Clients that depend upon the name are not portable.

Specified by:
getQueueName in interface javax.jms.Queue
Returns:
a string in the form of a URI that can be used in the creation methods to reconstruct this object. The URI is in the form:

queue://qmgrName/queueName [name-value pairs]

Where:

qmgrName
is the name of the queue manager on which the queue resides.
queueName
is the name of the queue
[name-value pairs]
is an optional list of name-value pairs that sets some Queue properties.
Throws:
javax.jms.JMSException - if JMS implementation for queue fails to return the queue name because of an internal error.

toString

public java.lang.String toString()
Gets a version of the queue name.

Specified by:
toString in interface javax.jms.Queue
Overrides:
toString in class java.lang.Object
Returns:
the provider specific identity values for this queue.

(c) Copyright IBM Corp. 2005. All Rights Reserved.