javax.jms

Interface Connection

Known Subinterfaces:
QueueConnection, TopicConnection, XAConnection, XAQueueConnection, XATopicConnection

public interface Connection

Method Summary

void
close()
ConnectionConsumer
createConnectionConsumer(Destination destination, String messageSelector, ServerSessionPool sessionPool, int maxMessages)
ConnectionConsumer
createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages)
Session
createSession(boolean transacted, int acknowledgeMode)
String
getClientID()
ExceptionListener
getExceptionListener()
ConnectionMetaData
getMetaData()
void
setClientID(String clientID)
void
setExceptionListener(ExceptionListener listener)
void
start()
void
stop()

Method Details

close

public void close()
            throws JMSException

createConnectionConsumer

public ConnectionConsumer createConnectionConsumer(Destination destination,
                                                   String messageSelector,
                                                   ServerSessionPool sessionPool,
                                                   int maxMessages)
            throws JMSException

createDurableConnectionConsumer

public ConnectionConsumer createDurableConnectionConsumer(Topic topic,
                                                          String subscriptionName,
                                                          String messageSelector,
                                                          ServerSessionPool sessionPool,
                                                          int maxMessages)
            throws JMSException

createSession

public Session createSession(boolean transacted,
                             int acknowledgeMode)
            throws JMSException

getClientID

public String getClientID()
            throws JMSException

getExceptionListener

public ExceptionListener getExceptionListener()
            throws JMSException

getMetaData

public ConnectionMetaData getMetaData()
            throws JMSException

setClientID

public void setClientID(String clientID)
            throws JMSException

setExceptionListener

public void setExceptionListener(ExceptionListener listener)
            throws JMSException

start

public void start()
            throws JMSException

stop

public void stop()
            throws JMSException