org.huihoo.jfox.ms.jms.queue
Class QueueImpl

java.lang.Object
  extended byorg.huihoo.jfox.ms.jms.base.DestinationImpl
      extended byorg.huihoo.jfox.ms.jms.queue.QueueImpl
All Implemented Interfaces:
javax.jms.Destination, javax.jms.Queue, javax.naming.Referenceable, java.io.Serializable
Direct Known Subclasses:
TemporaryQueueImpl

public class QueueImpl
extends DestinationImpl
implements javax.jms.Queue, javax.naming.Referenceable, java.io.Serializable

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

Version:
Revision: 1.1 Date: 2003-05-20 21:38:22
Author:
Peter.Cheng
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.huihoo.jfox.ms.jms.base.DestinationImpl
QUEUE, TOPIC
 
Constructor Summary
QueueImpl(java.lang.String name)
          Build QueueImpl with given name.
 
Method Summary
 java.lang.String getQueueName()
          Retrieve the queue name of this queue object.
 javax.naming.Reference getReference()
          Called by JNDI to construct a remote reference to this object that can be bound into a JNDI namespace.
 
Methods inherited from class org.huihoo.jfox.ms.jms.base.DestinationImpl
getName, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.Queue
toString
 

Constructor Detail

QueueImpl

public QueueImpl(java.lang.String name)
Build QueueImpl with given name.

Parameters:
name -
Method Detail

getQueueName

public java.lang.String getQueueName()
                              throws javax.jms.JMSException
Retrieve the queue name of this queue object.

Specified by:
getQueueName in interface javax.jms.Queue
Returns:
queue name
Throws:
javax.jms.JMSException

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Called by JNDI to construct a remote reference to this object that can be bound into a JNDI namespace.

Specified by:
getReference in interface javax.naming.Referenceable
Overrides:
getReference in class DestinationImpl
Throws:
javax.naming.NamingException


Copyright © 2002-2003 Open Enterprise Foundation. All Rights Reserved.