TopicConnectionFactory object to create TopicConnection objects with a
publish/subscribe Jakarta Messaging provider.
ATopicConnectionFactory can be used to create a TopicConnection, from which specialized
topic-related objects can be created. A more general, and recommended approach is to use the
ConnectionFactory object.
The TopicConnectionFactory object should be used to support existing code.
jakarta.jms.ConnectionFactory
| Modifier and Type | Method and Description |
|---|---|
| public TopicConnection | Returns: a newly created topic connectionCreates a topic connection with the default user identity. |
| public TopicConnection | Returns: a newly created topic connectionthe caller's user name userName, String the caller's password password)Creates a topic connection with the specified user identity. |
| createTopicConnection | back to summary |
|---|---|
| public TopicConnection createTopicConnection() throws JMSException Creates a topic connection with the default user identity. The connection is created in stopped mode. No messages
will be delivered until the
| |
| createTopicConnection | back to summary |
|---|---|
| public TopicConnection createTopicConnection(String userName, String password) throws JMSException Creates a topic connection with the specified user identity. The connection is created in stopped mode. No messages
will be delivered until the
| |