javax.jms
Interface Connection

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

public interface Connection

Version:
$Rev: 46019 $ $Date: 2004-09-14 02:56:06 -0700 (Tue, 14 Sep 2004) $

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 Detail

createSession

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

getClientID

String getClientID()
                   throws JMSException
Throws:
JMSException

setClientID

void setClientID(String clientID)
                 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

createConnectionConsumer

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

createDurableConnectionConsumer

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


Copyright © 2006 Apache Software Foundation. All Rights Reserved.