Novell exteNd Messaging Platform 5.2

com.sssw.jms.api
Class JMQTopic

java.lang.Object
  extended byorg.omg.CORBA.portable.ObjectImpl
      extended bycom.sssw.jbroker.orb.ValueWrapper
          extended bycom.sssw.jms.api.JMQAdministeredObject
              extended bycom.sssw.jms.api.JMQDestination
                  extended bycom.sssw.jms.api.JMQTopic
All Implemented Interfaces:
Destination, Object, Referenceable, Serializable, Topic

public class JMQTopic
extends JMQDestination
implements Topic

A Novell exteNd Messaging Platform JMS topic object encapsulates a topic name. It is the way a client specifies the identity of topics to JMS methods.

See Also:
JMQDestination, Serialized Form

Field Summary
 
Fields inherited from class com.sssw.jms.api.JMQDestination
QUEUE, TOPIC
 
Method Summary
 Reference getReference()
          Get a JNDI reference for this topic.
static JMQTopic getTopic(String topicName)
          Construct a Novell exteNd Messaging Platform JMS topic object with a given name.
 String getTopicName()
          Get the name of this Topic.
 void setTopicName(String topicName)
          Set the name of this Topic.
 String toString()
          Return a pretty printed version of the topic name.
 
Methods inherited from class com.sssw.jms.api.JMQDestination
getName, getType, toNative
 
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
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getTopic

public static final JMQTopic getTopic(String topicName)
Construct a Novell exteNd Messaging Platform JMS topic object with a given name.

The constructed object is a handle to the topic with the given name running inside the Novell exteNd Messaging Platform JMS server.

Note that the preferred/portable way to get topic objects is via JNDI.

Parameters:
topicName - The topic name.
Returns:
A JMQTopic object.

toString

public String toString()
Return a pretty printed version of the topic name.

Specified by:
toString in interface Topic
Overrides:
toString in class ObjectImpl
Returns:
The provider specific identity values for this topic.

setTopicName

public void setTopicName(String topicName)
Set the name of this Topic.

Parameters:
topicName - the name of topic

getTopicName

public String getTopicName()
                    throws JMSException
Get the name of this Topic.

Specified by:
getTopicName in interface Topic
Returns:
the name of topic
Throws:
JMSException - not raised by this implementation

getReference

public Reference getReference()
                       throws NamingException
Get a JNDI reference for this topic. This allows for storing Novell exteNd Messaging Platform JMS topics in all JNDI naming contexts.

Specified by:
getReference in interface Referenceable
Returns:
a reference to the topic object
Throws:
NamingException - if the JNDI reference could not be created

Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.