javax.jms
Interface Connection

All Known Subinterfaces:
QueueConnection, TopicConnection, XAConnection, XAQueueConnection, XATopicConnection
All Known Implementing Classes:
ConnectionImpl, QueueConnectionImpl, TopicConnectionImpl

public interface Connection

The main destination.


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

Method Detail

getClientID

java.lang.String getClientID()
                             throws JMSException
Throws:
JMSException

setClientID

void setClientID(java.lang.String clientID)
                 throws JMSException
Throws:
JMSException

createSession

Session createSession(boolean transacted,
                      int acknowledgeMode)
                      throws JMSException
Throws:
JMSException

createConnectionConsumer

ConnectionConsumer createConnectionConsumer(Destination destination,
                                            java.lang.String messageSelector,
                                            ServerSessionPool sessionPool,
                                            int maxMessages)
                                            throws JMSException
Throws:
JMSException

createDurableConnectionConsumer

ConnectionConsumer createDurableConnectionConsumer(Topic topic,
                                                   java.lang.String subscriptionName,
                                                   java.lang.String messageSelector,
                                                   ServerSessionPool sessionPool,
                                                   int maxMessages)
                                                   throws JMSException
Throws:
JMSException

getMetaData

ConnectionMetaData getMetaData()
                               throws JMSException
Throws:
JMSException

getExceptionListener

ExceptionListener getExceptionListener()
                                       throws JMSException
Throws:
JMSException

setExceptionListener

void setExceptionListener(ExceptionListener listener)
                          throws JMSException
Throws:
JMSException

start

void start()
           throws JMSException
Throws:
JMSException

stop

void stop()
          throws JMSException
Throws:
JMSException

close

void close()
           throws JMSException
Throws:
JMSException