Home » jboss-javaee-sources » javax » jms » [javadoc | source]
javax.jms
public interface: TopicConnection [javadoc | source]

All Implemented Interfaces:
    Connection

All Known Implementing Classes:
    XATopicConnection

A TopicConnection object is an active connection to a publish/subscribe JMS 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.

Method from javax.jms.TopicConnection Summary:
createConnectionConsumer,   createDurableConnectionConsumer,   createTopicSession
Method from javax.jms.TopicConnection Detail:
 public ConnectionConsumer createConnectionConsumer(Topic topic,
    String messageSelector,
    ServerSessionPool sessionPool,
    int maxMessages) throws JMSException
    Creates a connection consumer for this connection (optional operation). This is an expert facility not used by regular JMS clients.
 public ConnectionConsumer createDurableConnectionConsumer(Topic topic,
    String subscriptionName,
    String messageSelector,
    ServerSessionPool sessionPool,
    int maxMessages) throws JMSException
    Create a durable connection consumer for this connection (optional operation). This is an expert facility not used by regular JMS clients.
 public TopicSession createTopicSession(boolean transacted,
    int acknowledgeMode) throws JMSException
    Creates a TopicSession object.