com.ibm.mq.jms

Class MQXAConnectionFactory

  • java.lang.Object
    • com.ibm.msg.client.jms.internal.JmsReadablePropertyContextImpl
      • com.ibm.msg.client.jms.internal.JmsPropertyContextImpl
        • com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl
    • Constructor Detail

      • MQXAConnectionFactory

        public MQXAConnectionFactory()
        Default constructor.
    • Method Detail

      • createXAConnection

        public javax.jms.XAConnection createXAConnection()
                                                  throws javax.jms.JMSException
        Creates an XA connection with the default user identity. The connection is created in stopped mode. No messages are delivered until the XAConnection.start() method is called explicitly.
        Specified by:
        createXAConnection in interface javax.jms.XAConnectionFactory
        Returns:
        a newly created XA connection.
        Throws:
        javax.jms.JMSException - if the JMS provider fails to create an XA connection due to some internal error.
        javax.jms.JMSSecurityException - if client authentication fails due to invalid user name or password.
        See Also:
        XAConnectionFactory.createXAConnection()
      • createXAConnection

        public javax.jms.XAConnection createXAConnection(java.lang.String userid,
                                                java.lang.String password)
                                                  throws javax.jms.JMSException
        Creates an XA connection with the specified user identity. The connection is created in stopped mode. No messages are delivered until the XAConnection.start() method is called explicitly.
        Specified by:
        createXAConnection in interface javax.jms.XAConnectionFactory
        Parameters:
        userid - the user name of the caller.
        password - the password of the caller.
        Returns:
        a newly created XA connection.
        Throws:
        javax.jms.JMSException - if JMS fails to create an XA connection because of an internal JMS error.
        javax.jms.JMSSecurityException - if client authentication fails because the user name or password is not valid.
        See Also:
        XAConnectionFactory.createXAConnection(java.lang.String, java.lang.String)
      • createXAContext

        public javax.jms.XAJMSContext createXAContext()
                                               throws javax.jms.JMSRuntimeException,
                                                      javax.jms.JMSSecurityRuntimeException
        Specified by:
        createXAContext in interface javax.jms.XAConnectionFactory
        Throws:
        javax.jms.JMSRuntimeException
        javax.jms.JMSSecurityRuntimeException
        See Also:
        XAConnectionFactory.createXAContext()
      • createXAContext

        public javax.jms.XAJMSContext createXAContext(java.lang.String userName,
                                             java.lang.String password)
                                               throws javax.jms.JMSRuntimeException,
                                                      javax.jms.JMSSecurityRuntimeException
        Specified by:
        createXAContext in interface javax.jms.XAConnectionFactory
        Throws:
        javax.jms.JMSRuntimeException
        javax.jms.JMSSecurityRuntimeException
        See Also:
        XAConnectionFactory.createXAContext(java.lang.String, java.lang.String)
(c) Copyright IBM Corp. 2008, 2015. All Rights Reserved.