A client uses a TopicConnectionFactory
object to create
TopicConnection
objects with a publish/subscribe JMS provider.
ConnectionFactory
TopicConnection
createTopicConnection(java.lang.String userName,
java.lang.String password)
public TopicConnection createTopicConnection() throws JMSException
Connection.start
method
is explicitly called.JMSException
- if the JMS provider fails to create a topic
connection due to some internal error.JMSSecurityException
- if client authentication fails due to
an invalid user name or password.public TopicConnection createTopicConnection(java.lang.String userName, java.lang.String password) throws JMSException
Connection.start
method
is explicitly called.userName
- the caller's user namepassword
- the caller's passwordJMSException
- if the JMS provider fails to create a topic
connection due to some internal error.JMSSecurityException
- if client authentication fails due to
an invalid user name or password.