|
Préférences
Moteurs de recherche
|
||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.jms
|
Method Summary | |
---|---|
TopicConnection |
createTopicConnection()
Creates a topic connection with the default user identity. |
TopicConnection |
createTopicConnection(String userName,
String password)
Creates a topic connection with the specified user identity. |
Methods inherited from interface javax.jms.ConnectionFactory |
---|
createConnection, createConnection |
Method Detail |
---|
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.TopicConnection createTopicConnection(String userName, String password) throws JMSException
Connection.start
method
is explicitly called.
userName
- the caller's user namepassword
- the caller's password
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.