MQTopicConnection
public class MQTopicConnection
extends MQConnection
implements TopicConnection
java.lang.Object
|
+----com.ibm.mq.jms.MQConnection
|
+----com.ibm.mq.jms.MQTopicConnection
An MQTopicConnection object is an active connection to a publish/subscribe
JMS provider.
Methods
createTopicSession
public TopicSession createTopicSession(boolean transacted,
int acknowledgeMode)
throws JMSException;
Creates a TopicSession object.
- Parameters
-
- transacted - if true, throws a JMSException on a direct connection to
a broker.
- acknowledgeMode - indicates whether the consumer or the client will acknowledge
any messages it receives; ignored if the session is transacted. Legal values
are Session.AUTO_ACKNOWLEDGE, Session.CLIENT_ACKNOWLEDGE, and Session.DUPS_OK_ACKNOWLEDGE.
- Returns
-
- session - a newly created topic session
- Exceptions
-
- JMSException - if the MQTopicConnection failed to create a session due
to an internal error or if a transacted session was requested when using a
direct connection to a broker.