SonicMQ API

progress.message.jclient
Interface TopicConnection

All Superinterfaces:
Connection, TopicConnection
All Known Subinterfaces:
TopicConnection, XATopicConnection

public interface TopicConnection
extends Connection, TopicConnection

An implementation of javax.jms.TopicConnectionFactory

See Also:
TopicConnectionFactory

Method Summary
 TopicSession createTopicSession(boolean transacted, int acknowledgeMode, java.lang.String sessionName)
          Creates a TopicSession object with an associated name.
 
Methods inherited from interface progress.message.jclient.Connection
createSession, getBrokerReconnectURLs, getBrokerURL, getChannel, getConnectID, getConnectionState, getConnectionStateChangeListener, getRoutingNodeName, getStandbyBrokerReconnectURLs, getUnfinishedChannelIDs, getUnfinishedChannels, getUsername, hasUnfinishedChannel, hasUnfinishedChannels, isFaultTolerant, isSecure, setConnectionStateChangeListener, setPingInterval, setRejectionListener
 
Methods inherited from interface javax.jms.Connection
close, createConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 
Methods inherited from interface javax.jms.TopicConnection
createConnectionConsumer, createDurableConnectionConsumer, createTopicSession
 
Methods inherited from interface javax.jms.Connection
close, createConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 

Method Detail

createTopicSession

TopicSession createTopicSession(boolean transacted,
                                int acknowledgeMode,
                                java.lang.String sessionName)
                                throws JMSException
Creates a TopicSession object with an associated name.

Parameters:
transacted - indicates whether the session is transacted
acknowledgeMode - indicates whether the consumer or the client will acknowledge any messages it receives; ignored if the session is transacted. Legal values are Session.AUTO_ACKNOWLEDGE, Session.CLIENT_ACKNOWLEDGE, and Session.DUPS_OK_ACKNOWLEDGE.
sessionName - provides a name for the session; this is an informational label to help administrators identify the session, particularly in the Sonic management tools
Returns:
a newly created session
Throws:
JMSException - if the TopicConnection object fails to create a session due to some internal error or lack of support for the specific transaction and acknowledgement mode.
See Also:
Session.AUTO_ACKNOWLEDGE, Session.CLIENT_ACKNOWLEDGE, Session.DUPS_OK_ACKNOWLEDGE, Session.getSessionName()

SonicMQ API

Copyright © 1999-2012 Progress Software Corporation. All Rights Reserved.
HTML formatted on 13-March-2012.