jBroker® MQ 2.1

com.sssw.jms.api
Class JMQDestination

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
        |
        +--com.sssw.jbroker.orb.ValueWrapper
              |
              +--com.sssw.jms.api.JMQAdministeredObject
                    |
                    +--com.sssw.jms.api.JMQDestination
All Implemented Interfaces:
Destination, Object, Referenceable, Serializable
Direct Known Subclasses:
JMQQueue, JMQTopic

public abstract class JMQDestination
extends JMQAdministeredObject
implements Destination

The jBroker MQ Destination. A destination is either a queue or a topic.

See Also:
JMQQueue, JMQTopic, Serialized Form

Field Summary
static int QUEUE
          Queue Destination.
static int TOPIC
          Topic Destination.
 
Method Summary
 String getName()
          Get the name of the destination
 int getType()
          Get the type of the destination
static JMQDestination toNative(Destination destination)
          Convert a JMS destination to a jBroker MQ destination.
 
Methods inherited from class com.sssw.jbroker.orb.ValueWrapper
_ids
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Field Detail

QUEUE

public static final int QUEUE
Queue Destination.

TOPIC

public static final int TOPIC
Topic Destination.
Method Detail

getType

public int getType()
Get the type of the destination
Returns:
the integer constant for the destination's type
See Also:
QUEUE, TOPIC

getName

public String getName()
Get the name of the destination
Returns:
name of destination

toNative

public static final JMQDestination toNative(Destination destination)
                                     throws JMSException
Convert a JMS destination to a jBroker MQ destination.
Parameters:
destination - a standard JMS destination
Returns:
a jBroker MQ specific destination object
Throws:
JMSException - if destination name could not be read

jBroker® MQ 2.1

jBroker is a registered trademark of Novell, Inc.
Copyright 1998-2003 Novell, Inc. All Rights Reserved.