|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mq.jms.MQSession | +--com.ibm.mq.jms.MQTopicSession
An MQTopicSession object provides methods for creating MQTopicPublisher, MQTopicSubscriber, and MQTemporaryTopic objects.
Field Summary |
Fields inherited from interface javax.jms.Session |
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED |
Method Summary | |
javax.jms.TopicPublisher |
createPublisher(javax.jms.Topic topic)
Creates a publisher for the specified topic. |
javax.jms.TopicSubscriber |
createSubscriber(javax.jms.Topic topic)
Creates a nondurable Subscriber to the specified topic. |
javax.jms.TopicSubscriber |
createSubscriber(javax.jms.Topic topic,
java.lang.String selector,
boolean noLocal)
Creates a nondurable Subscriber to the specified topic. |
javax.jms.TemporaryTopic |
createTemporaryTopic()
Creates a TemporaryTopic object. |
javax.jms.Topic |
createTopic(java.lang.String topicName)
Creates a topic identity given a Topic name. |
Methods inherited from class com.ibm.mq.jms.MQSession |
createBytesMessage, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createStreamMessage, createTextMessage, createTextMessage, getAcknowledgeMode, getMessageListener, getTransacted, setMessageListener, unsubscribe |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.TopicSession |
createDurableSubscriber, createDurableSubscriber, unsubscribe |
Methods inherited from interface javax.jms.Session |
createBytesMessage, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createStreamMessage, createTextMessage, createTextMessage, getAcknowledgeMode, getMessageListener, getTransacted, run, setMessageListener |
Method Detail |
public javax.jms.TopicPublisher createPublisher(javax.jms.Topic topic) throws javax.jms.JMSException
createPublisher
in interface javax.jms.TopicSession
topic
- the Topic on which messages are to be published.
javax.jms.JMSException
- if a Session fails to create a publisher
due to an internal error.public javax.jms.TopicSubscriber createSubscriber(javax.jms.Topic topic) throws javax.jms.JMSException
createSubscriber
in interface javax.jms.TopicSession
topic
- the topic to subscribe to
javax.jms.JMSException
- if a session fails to create a subscriber
due to some JMS error.
javax.jms.InvalidDestinationException
- if invalid Topic specified.public javax.jms.TopicSubscriber createSubscriber(javax.jms.Topic topic, java.lang.String selector, boolean noLocal) throws javax.jms.JMSException
createSubscriber
in interface javax.jms.TopicSession
topic
- the topic to subscribe toselector
- only messages with properties matching the
message selector expression are delivered. This value may be null.noLocal
- if set, inhibits the delivery of messages published
by its own connection.
javax.jms.JMSException
- if a session fails to create a subscriber
due to some JMS error or invalid selector.
javax.jms.InvalidDestinationException
- if invalid Topic specified.
javax.jms.InvalidSelectorException
- if the message selector is invalid.public javax.jms.TemporaryTopic createTemporaryTopic() throws javax.jms.JMSException
createTemporaryTopic
in interface javax.jms.TopicSession
createTemporaryTopic
in class MQSession
javax.jms.JMSException
- if the session fails to create a
temporary topic due to some internal error.public javax.jms.Topic createTopic(java.lang.String topicName) throws javax.jms.JMSException
createTopic
in interface javax.jms.TopicSession
createTopic
in class MQSession
topicName
- the name of this Topic
javax.jms.JMSException
- if the session fails to create a topic
due to some internal error.
|
(c) Copyright IBM Corp. 2005. All Rights Reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |