Class MQQueueConnectionFactory

java.lang.Object
com.ibm.msg.client.jakarta.jms.internal.JmsReadablePropertyContextImpl
com.ibm.msg.client.jakarta.jms.internal.JmsPropertyContextImpl
com.ibm.msg.client.jakarta.jms.admin.JmsConnectionFactoryImpl
com.ibm.msg.client.jakarta.jms.admin.JmsJndiConnectionFactoryImpl
com.ibm.mq.jakarta.jms.MQConnectionFactory
com.ibm.mq.jakarta.jms.MQQueueConnectionFactory
All Implemented Interfaces:
JmsConnectionFactory, JmsPropertyContext, JmsQueueConnectionFactory, JmsReadablePropertyContext, com.ibm.msg.client.jakarta.provider.ProviderPropertyContextCallback, jakarta.jms.ConnectionFactory, jakarta.jms.QueueConnectionFactory, Serializable, Map<String,Object>, Referenceable
Direct Known Subclasses:
MQXAQueueConnectionFactory

public class MQQueueConnectionFactory extends MQConnectionFactory implements jakarta.jms.QueueConnectionFactory, Referenceable, Serializable, JmsQueueConnectionFactory
A client uses an MQQueueConnectionFactory to create QueueConnections with a JMS point-to-point provider.
See Also:
  • Constructor Details

    • MQQueueConnectionFactory

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

    • createQueueConnection

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

      public jakarta.jms.QueueConnection createQueueConnection(String userid, String password) throws jakarta.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 jakarta.jms.QueueConnectionFactory
      Parameters:
      userid - the user name of the caller.
      password - the password of the caller.
      Returns:
      a newly created queue connection.
      Throws:
      jakarta.jms.JMSException - if JMS Provider fails to create an MQQueueConnection due to an internal error.
      jakarta.jms.JMSSecurityException - if client authentication fails due to an invalid user name or password.