50.3. Methods

The TopicConnectionFactory interface inherits the fields and the methods of the interface javax.jms.ConnectionFactory. The following methods are defined in the interface javax.jms.TopicConnectionFactory.

createTopicConnection()

public TopicConnection createTopicConnection()

Creates a topic connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.

RETURNS:

a newly created topic connection

THROWS:

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

createTopicConnection(String, String) ...

Get Java™ Message Service API Tutorial and Reference: Messaging for the J2EE™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.