Topic


public interface Topic
extends Destination
Subinterfaces: TemporaryTopic

WebSphere MQ class: MQTopic



java.lang.Object
   |
   +----com.ibm.mq.jms.MQDestination
           |
           +----com.ibm.mq.jms.MQTopic

A Topic object encapsulates a provider-specific topic name. It is the way a client specifies the identity of a topic to JMS methods.

WebSphere MQ Event Broker note

For direct connections to WebSphere MQ Event Broker, properties accessed by methods marked with a "§" are ignored.

See also: Destination

WebSphere MQ constructor

MQTopic
public MQTopic()

public MQTopic(string URItopic)

See TopicSession.createTopic.

Methods

getBaseTopicName *
public String getBaseTopicName()

get method for the underlying WebSphere MQ topic name.

getBrokerCCDurSubQueue * §
public String getBrokerCCDurSubQueue()

Get method for brokerCCDurSubQueue attribute.

Returns:
the name of the durable subscription queue (the brokerCCDurSubQueue) to use for a ConnectionConsumer.

getBrokerDurSubQueue * §
public String getBrokerDurSubQueue()

Get method for brokerDurSubQueue attribute.

Returns:
the name of the durable subscription queue (the brokerDurSubQueue) to use.

getReference *
public Reference getReference()

Create a reference for this topic.

Returns:
a reference for this object.

Throws:
NamingException.

getTopicName
public java.lang.String getTopicName() throws JMSException

Get the name of this topic in URI format. (URI format is described in Creating topics at runtime.)

Note:
Clients that depend upon the name are not portable.

Returns:
the topic name.

Throws:
JMSException - if JMS implementation for Topic fails to return the topic name because of an internal error.

setBaseTopicName *
public void setBaseTopicName(String x)

set method for the underlying WebSphere MQ topic name.

setBrokerCCDurSubQueue * §
public void setBrokerCCDurSubQueue(String x) throws JMSException

Set method for brokerCCDurSubQueue attribute.

Parameters:
brokerCCDurSubQueue - the name of the durable subscription queue to use for a ConnectionConsumer.

setBrokerDurSubQueue * §
public void setBrokerDurSubQueue(String x) throws JMSException

Set method for brokerDurSubQueue attribute.

Parameters:
brokerDurSubQueue - the name of the durable subscription queue to use.

toString
public String toString()

Return a pretty printed version of the Topic name.

Returns:
the provider specific identity values for this Topic.

Overrides:
toString in class Object.



© IBM Corporation 1997, 2002. All Rights Reserved