Package jakarta.jms

Interface TopicConnection

All Superinterfaces:
AutoCloseable, Connection
All Known Subinterfaces:
XATopicConnection

public interface TopicConnection extends Connection
A TopicConnection object is an active connection to a publish/subscribe Jakarta Messaging provider. A client uses a TopicConnection object to create one or more TopicSession objects for producing and consuming messages.

A TopicConnection can be used to create a TopicSession, from which specialized topic-related objects can be created. A more general, and recommended approach is to use the Connection object.

The TopicConnection object should be used to support existing code.

Since:
JMS 1.0
Version:
Jakarta Messaging 2.0
See Also: