XAQueueConnection


public interface XAQueueConnection
extends QueueConnection and XAConnection

WebSphere MQ class: MQXAQueueConnection



java.lang.Object
    |
    +----com.ibm.mq.jms.MQConnection
            |
            +----com.ibm.mq.jms.MQQueueConnection
                    |
                    +----com.ibm.mq.jms.MQXAQueueConnection
 

XAQueueConnection provides the same create options as QueueConnection. 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: XAConnection and QueueConnection

Methods

createQueueSession
public QueueSession createQueueSession(boolean transacted,
                                       int acknowledgeMode)
                                                     throws JMSException

Create a QueueSession.

Parameters:
  • transacted - if true, the session is transacted.
  • acknowledgeMode - indicates whether the consumer or the client will acknowledge any messages it receives. Possible values are:
    Session.AUTO_ACKNOWLEDGE
    Session.CLIENT_ACKNOWLEDGE
    Session.DUPS_OK_ACKNOWLEDGE

    This parameter is ignored if the session is transacted.

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

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

createXAQueueSession
public XAQueueSession createXAQueueSession()

Create an XAQueueSession.

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



© IBM Corporation 1997, 2002. All Rights Reserved