SonicMQ API

progress.message.jclient
Interface QueueConnection

All Superinterfaces:
Connection, QueueConnection
All Known Subinterfaces:
QueueConnection, XAQueueConnection

public interface QueueConnection
extends Connection, QueueConnection

An implementation of javax.jms.QueueConnectionFactory

See Also:
QueueConnectionFactory

Method Summary
 QueueSession createQueueSession(boolean transacted, int acknowledgeMode, java.lang.String sessionName)
          Creates a QueueSession 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, createDurableConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 
Methods inherited from interface javax.jms.QueueConnection
createConnectionConsumer, createQueueSession
 
Methods inherited from interface javax.jms.Connection
close, createConnectionConsumer, createDurableConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 

Method Detail

createQueueSession

QueueSession createQueueSession(boolean transacted,
                                int acknowledgeMode,
                                java.lang.String sessionName)
                                throws JMSException
Creates a QueueSession 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 QueueConnection 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.