Name
TopicConnection
Synopsis
A TopicConnection
is a Connection
to a publish/subscribe-based JMS
provider. It provides methods for creating TopicSessions
, as well as
ConnectionConsumers
.
public interface TopicConnection extends javax.jms.Connection { // Public Instance Methods public abstract ConnectionConsumer createConnectionConsumer( Topic topic, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException; public abstract ConnectionConsumer createDurableConnectionConsumer( Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException; public abstract TopicSession createTopicSession( boolean transacted, int acknowledgeMode) throws JMSException; }
Implementations
XATopicConnection
Returned By
TopicConnectionFactory.createTopicConnection()
Get Java Enterprise in a Nutshell, Second Edition 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.