Queue
public interface Queue
extends Destination
Subinterfaces: TemporaryQueue
WebSphere MQ class: MQQueue
java.lang.Object | +----com.ibm.mq.jms.MQDestination | +----com.ibm.mq.jms.MQQueueA Queue object encapsulates a provider-specific queue name. It is the way that 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:
- Only the administration tool can use this method.
- setBaseQueueName *
public void setBaseQueueName(String x) throws JMSException
Set the value of the WebSphere MQ queue name.
- Note:
- Only the administration tool can use this method. It makes no attempt to decode queue:qmgr:queue format strings.
- toString
public java.lang.String toString()
Return a well-formatted printed version of the queue name.
- Returns:
- The provider-specific identity values for this queue.
- Overrides:
- toString in class java.lang.Object
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.