org.jboss.jms.client
Interface ConnectionDelegate

All Superinterfaces:
Lifecycle (src)
All Known Implementing Classes:
P2PConnectionDelegate (src)

public interface ConnectionDelegate
extends Lifecycle (src)

The implementation of a connection


Method Summary
 SessionDelegate (src) createSession(boolean isXA, boolean transacted, int acknowledgeMode)
          Create a session
 void deleteTempDestination(JBossTemporaryDestination (src)  destination)
          Delete the temporary destination
 java.lang.String getClientID()
          Retrieve the client id
 java.util.Enumeration getJMSXPropertyNames()
          Retrieve the extension property names
 void setClientID(java.lang.String id)
          Set the client id
 void setExceptionListener(ExceptionListener (src)  listener)
          Set the exception listener
 void start()
          Start the connection
 void stop()
          Stop the connection
 
Methods inherited from interface org.jboss.jms.client.Lifecycle (src)
close, closing
 

Method Detail

createSession

public SessionDelegate (src)  createSession(boolean isXA,
                                     boolean transacted,
                                     int acknowledgeMode)
                              throws JMSException (src) 
Create a session

Parameters:
transacted - whether the session is transacted
Returns:
the session
Throws:
JMSException (src) - for any error

getJMSXPropertyNames

public java.util.Enumeration getJMSXPropertyNames()
                                           throws JMSException (src) 
Retrieve the extension property names

Returns:
an enumeration of extension properties
Throws:
JMSException (src) - for any error

getClientID

public java.lang.String getClientID()
                             throws JMSException (src) 
Retrieve the client id

Returns:
the client id
Throws:
JMSException (src) - for any error

deleteTempDestination

public void deleteTempDestination(JBossTemporaryDestination (src)  destination)
Delete the temporary destination

Throws:
JMSException (src) - for any error

setClientID

public void setClientID(java.lang.String id)
                 throws JMSException (src) 
Set the client id

Parameters:
id - the client id
Throws:
JMSException (src) - for any error

setExceptionListener

public void setExceptionListener(ExceptionListener (src)  listener)
                          throws JMSException (src) 
Set the exception listener

Throws:
JMSException (src) - for any error

start

public void start()
           throws JMSException (src) 
Start the connection

Throws:
JMSException (src) - for any error

stop

public void stop()
          throws JMSException (src) 
Stop the connection

Throws:
JMSException (src) - for any error