12.2. Interface Definition

package javax.jms;
public interface Connection {
   void close() throws JMSException;
   String getClientID () throws JMSException;
   ExceptionListener getExceptionListener () throws JMSException;
   ConnectionMetaData getMetaData () throws JMSException;
   void setClientID (String clientID) throws JMSException;
   void setExceptionListener (ExceptionListener listener)
                                                  throws JMSException;

   void start () throws JMSException;
   void stop () throws JMSException;
}

Get Java™ Message Service API Tutorial and Reference: Messaging for the J2EE™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.