Class MQTopicConnectionFactory

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.MQTopicConnectionFactory
All Implemented Interfaces:
JmsConnectionFactory, JmsPropertyContext, JmsReadablePropertyContext, JmsTopicConnectionFactory, com.ibm.msg.client.jakarta.provider.ProviderPropertyContextCallback, jakarta.jms.ConnectionFactory, jakarta.jms.TopicConnectionFactory, Serializable, Map<String,Object>, Referenceable
Direct Known Subclasses:
MQXATopicConnectionFactory

public class MQTopicConnectionFactory extends MQConnectionFactory implements jakarta.jms.TopicConnectionFactory, JmsTopicConnectionFactory, Referenceable, Serializable
A client uses an MQTopicConnectionFactory object to create TopicConnection objects with a publish/subscribe JMS provider.
See Also:
  • Constructor Details

    • MQTopicConnectionFactory

      public MQTopicConnectionFactory()
      The default constructor
  • Method Details

    • createTopicConnection

      public jakarta.jms.TopicConnection createTopicConnection() throws jakarta.jms.JMSException
      Creates a topic connection with default user identity.
      Specified by:
      createTopicConnection in interface jakarta.jms.TopicConnectionFactory
      Returns:
      a newly created queue connection
      Throws:
      jakarta.jms.JMSException - if the JMS provider fails to create a topic connection due to some internal error
      jakarta.jms.JMSSecurityException - if client authentication fails due to invalid user name or password
      See Also:
      • TopicConnectionFactory.createTopicConnection()
    • createTopicConnection

      public jakarta.jms.TopicConnection createTopicConnection(String userid, String password) throws jakarta.jms.JMSException
      Creates a topic connection with the 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:
      createTopicConnection in interface jakarta.jms.TopicConnectionFactory
      Parameters:
      userid - the user name of the caller.
      password - the password of the caller.
      Returns:
      a newly created topic connection
      Throws:
      jakarta.jms.JMSException - if the JMS provider fails to create a topic connection due to some internal error
      jakarta.jms.JMSSecurityException - if client authentication fails due to invalid user name or password
      See Also:
      • TopicConnectionFactory.createTopicConnection(String,String)