com.ibm.mq.jms

Class MQQueueConnectionFactory

  • 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

      • MQQueueConnectionFactory

        public MQQueueConnectionFactory()
        This is the default constructor.
    • Method Detail

      • createQueueConnection

        public javax.jms.QueueConnection createQueueConnection()
                                                        throws javax.jms.JMSException
        Creates a queue connection with default user identity.
        Specified by:
        createQueueConnection in interface javax.jms.QueueConnectionFactory
        Returns:
        a newly created queue connection.
        Throws:
        javax.jms.JMSException - if JMS Provider fails to create Queue Connection due to some internal error
        javax.jms.JMSSecurityException - if client authentication fails due to invalid user name or password.
      • createQueueConnection

        public javax.jms.QueueConnection createQueueConnection(java.lang.String userid,
                                                               java.lang.String password)
                                                        throws javax.jms.JMSException
        Creates a queue connection with specified user identity. If a null or empty userid is provided, the password parameter will be interpreted as an authentication token to be provided to the queue manager in place of userid and password.
        Specified by:
        createQueueConnection in interface javax.jms.QueueConnectionFactory
        Parameters:
        userid - the user name of the caller.
        password - the password of the caller.
        Returns:
        a newly created queue connection.
        Throws:
        javax.jms.JMSException - if JMS Provider fails to create an MQQueueConnection due to an internal error.
        javax.jms.JMSSecurityException - if client authentication fails due to an invalid user name or password.
(c) Copyright IBM Corp. 2008, 2016. All Rights Reserved.