WebSphere MQ class: MQTopicConnection
java.lang.Object
|
+----com.ibm.mq.jms.MQConnection
|
+----com.ibm.mq.jms.MQTopicConnection
|
A TopicConnection is an active connection to a JMS Publish/Subscribe provider.
See also: Connection, TopicConnectionFactory, and XATopicConnection
public ConnectionConsumer createConnectionConsumer
(Topic topic,
java.lang.String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException
Create a connection consumer for this connection. This is an expert facility that is not used by regular JMS clients.
| WebSphere MQ Event Broker note |
|---|
|
For a direct connection to WebSphere MQ Event Broker, if transact is true then this method throws a JMSException. |
public ConnectionConsumer createDurableConnectionConsumer
(Topic topic,
java.lang.String subscriptionName
java.lang.String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException
Create a durable connection consumer for this connection. This is an expert facility that is not used by regular JMS clients.
| WebSphere MQ Event Broker note |
|---|
|
For a direct connection to WebSphere MQ Event Broker, this method throws a JMSException. |
public TopicSession createTopicSession(boolean transacted,
int acknowledgeMode)
throws JMSException
Create a TopicSession.
| WebSphere MQ Event Broker note |
|---|
|
For a direct connection to WebSphere MQ Event Broker, if transact is true then this method throws a JMSException. |
Indicates whether the consumer or the client will acknowledge any messages it receives. This parameter will be ignored if the session is transacted.