com.caucho.jms.jca
Class ManagedSessionImpl

java.lang.Object
  extended by com.caucho.jms.jca.ManagedSessionImpl
All Implemented Interfaces:
ManagedConnection

public class ManagedSessionImpl
extends java.lang.Object
implements ManagedConnection

The managed session


Constructor Summary
ManagedSessionImpl(ConnectionFactory factory, Destination destination)
           
 
Method Summary
 void addConnectionEventListener(ConnectionEventListener listener)
          Adds a new listener.
 void associateConnection(java.lang.Object o)
          Associates an application-level connection handle with a ManagedConnection
 void cleanup()
          Cleanup the physical connection.
 void destroy()
          Destroys the physical connection.
 java.lang.Object getConnection(javax.security.auth.Subject subj, ConnectionRequestInfo info)
          Creates a new connection handle for the underlying physical connection.
 ConnectionEventListener getConnectionEventListener()
           
 LocalTransaction getLocalTransaction()
          Returns a LocalTransaction.
 java.io.PrintWriter getLogWriter()
          Returns the log stream.
 ManagedConnectionMetaData getMetaData()
          Returns the meta data for the connection.
 XAResource getXAResource()
          Returns an XAResource for the connection.
 void removeConnectionEventListener(ConnectionEventListener listener)
          Removes an old new listener.
 void setLogWriter(java.io.PrintWriter out)
          Sets the log stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedSessionImpl

public ManagedSessionImpl(ConnectionFactory factory,
                          Destination destination)
                   throws ResourceException
Throws:
ResourceException
Method Detail

getMetaData

public ManagedConnectionMetaData getMetaData()
Description copied from interface: ManagedConnection
Returns the meta data for the connection.

Specified by:
getMetaData in interface ManagedConnection

getLocalTransaction

public LocalTransaction getLocalTransaction()
                                     throws ResourceException
Description copied from interface: ManagedConnection
Returns a LocalTransaction.

Specified by:
getLocalTransaction in interface ManagedConnection
Throws:
ResourceException

getXAResource

public XAResource getXAResource()
                         throws ResourceException
Description copied from interface: ManagedConnection
Returns an XAResource for the connection.

Specified by:
getXAResource in interface ManagedConnection
Throws:
ResourceException

addConnectionEventListener

public void addConnectionEventListener(ConnectionEventListener listener)
Description copied from interface: ManagedConnection
Adds a new listener.

Specified by:
addConnectionEventListener in interface ManagedConnection

removeConnectionEventListener

public void removeConnectionEventListener(ConnectionEventListener listener)
Description copied from interface: ManagedConnection
Removes an old new listener.

Specified by:
removeConnectionEventListener in interface ManagedConnection

getConnectionEventListener

public ConnectionEventListener getConnectionEventListener()

getConnection

public java.lang.Object getConnection(javax.security.auth.Subject subj,
                                      ConnectionRequestInfo info)
Description copied from interface: ManagedConnection
Creates a new connection handle for the underlying physical connection.

Specified by:
getConnection in interface ManagedConnection

associateConnection

public void associateConnection(java.lang.Object o)
                         throws ResourceException
Description copied from interface: ManagedConnection
Associates an application-level connection handle with a ManagedConnection

Specified by:
associateConnection in interface ManagedConnection
Throws:
ResourceException

getLogWriter

public java.io.PrintWriter getLogWriter()
Description copied from interface: ManagedConnection
Returns the log stream.

Specified by:
getLogWriter in interface ManagedConnection

setLogWriter

public void setLogWriter(java.io.PrintWriter out)
Description copied from interface: ManagedConnection
Sets the log stream.

Specified by:
setLogWriter in interface ManagedConnection

cleanup

public void cleanup()
             throws ResourceException
Description copied from interface: ManagedConnection
Cleanup the physical connection.

Specified by:
cleanup in interface ManagedConnection
Throws:
ResourceException

destroy

public void destroy()
             throws ResourceException
Description copied from interface: ManagedConnection
Destroys the physical connection.

Specified by:
destroy in interface ManagedConnection
Throws:
ResourceException