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. |
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 |
QUEUE
public static final int QUEUE
- Queue Destination.
TOPIC
public static final int TOPIC
- Topic Destination.
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 is a registered trademark of Novell, Inc.
Copyright 1998-2003 Novell, Inc. All Rights Reserved.