XAQueueConnectionFactory


public interface XAQueueConnectionFactory
extends QueueConnectionFactory and XAConnectionFactory

WebSphere MQ class: MQXAQueueConnectionFactory



java.lang.Object
    |
    +----com.ibm.mq.jms.MQConnectionFactory
            |
            +----com.ibm.mq.jms.MQQueueConnectionFactory
                    |
                    +----com.ibm.mq.jms.MQXAQueueConnectionFactory

An XAQueueConnectionFactory provides the same create options as a QueueConnectionFactory. 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: QueueConnectionFactory and XAConnectionFactory

Methods

createXAQueueConnection
public XAQueueConnection createXAQueueConnection()
                                           throws JMSException

Create an XAQueueConnection using the default user identity. The connection is created in stopped mode. No messages are delivered until the Connection.start method is called explicitly.

Returns:
a newly created XA queue connection.

Throws:
  • JMSException - if the JMS Provider fails to create an XA queue connection because of an internal error.
  • JMSSecurityException - if client authentication fails because of a non valid user name or password.

createXAQueueConnection
public XAQueueConnection createXAQueueConnection
                                  (java.lang.String userName,
                                   java.lang.String password)
                                                       throws JMSException

Create an XA queue connection using a specific user identity. The connection is created in stopped mode. No messages are delivered until the Connection.start method is called explicitly.

Parameters:
  • userName - the user name of the caller.
  • password - the password for the caller.

Returns:
a newly created XA queue connection.

Throws:
  • JMSException - if the JMS Provider fails to create an XA queue connection because of an internal error.
  • JMSSecurityException - if client authentication fails because of a non valid user name or password.



© IBM Corporation 1997, 2002. All Rights Reserved