MQTopicConnectionFactory
public class MQTopicConnectionFactory
extends MQConnectionFactory
implements TopicConnectionFactoryReferenceableSerializable
java.lang.Object
|
+----com.ibm.mq.jms.MQConnectionFactory
|
+----com.ibm.mq.jms.MQTopicConnectionFactory
A client uses an MQTopicConnectionFactory object to create
TopicConnection objects with a publish/subscribe JMS provider.
Constructors
MQTopicConnectionFactory
public MQTopicConnectionFactory();
Creates an instance of a TopicConnectionFactory
Methods
createTopicConnection
public TopicConnection createTopicConnection() throws JMSException;
Creates a topic connection with default user identity.
- Returns
-
- a newly created queue connection.
- Exceptions
-
- JMSException - if JMS Provider fails to create Topic Connection due to
some internal error. required resources for a Topic Connection.
- JMSSecurityException - if client authentication fails due to invalid user
name or password.
createTopicConnection
public TopicConnection createTopicConnection(String userName,
String password)
throws JMSException;
Creates a topic connection with specified user identity.
- Parameters
-
- userName - the caller's user name
- password - the caller's password
- Returns
-
- a newly created topic connection.
- Exceptions
-
- JMSException - if JMS Provider fails to create Topic Connection due to
some internal error.
- JMSSecurityException - if client authentication fails due to invalid user
name or password.