XATopicConnection


public interface XATopicConnection
extends TopicConnection and XAConnection

WebSphere MQ class: MQXATopicConnection



java.lang.Object
    |
    +----com.ibm.mq.jms.MQConnection
            |
            +----com.ibm.mq.jms.MQTopicConnection
                    |
                    +----com.ibm.mq.jms.MQXATopicConnection
 

An XATopicConnection provides the same create options as TopicConnection. The only difference is that, by definition, an XAConnection is transacted. Refer to Appendix E, JMS JTA/XA interface with WebSphere Application Server V4 for details about how WebSphere MQ JMS uses XA classes.

See also: TopicConnection and XAConnection

Methods

createTopicSession
public TopicSession createTopicSession(boolean transacted,
                                       int acknowledgeMode)
                                 throws JMSException

Create a TopicSession.

Specified by:
createTopicSession in interface TopicConnection.

Parameters:
  • transacted - if true, the session is transacted.
  • acknowledgeMode - one of:
    Session.AUTO_ACKNOWLEDGE
    Session.CLIENT_ACKNOWLEDGE
    Session.DUPS_OK_ACKNOWLEDGE

    Indicates whether the consumer or the client will acknowledge any messages it receives. This parameter will be ignored if the session is transacted.

Returns:
a newly created topic session (note that this is not an XA topic session).

Throws:
JMSException - if JMS Connection fails to create a topic session because of an internal error.

createXATopicSession
public XATopicSession createXATopicSession()
                                     throws JMSException 

Create an XATopicSession.

Throws:
JMSException - if the JMS Connection fails to create an XA topic session because of an internal error.



© IBM Corporation 1997, 2002. All Rights Reserved