public class ManagedSessionImpl extends java.lang.Object implements ManagedConnection
Constructor and Description |
---|
ManagedSessionImpl(ConnectionFactory factory,
Destination destination) |
Modifier and Type | Method and Description |
---|---|
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.
|
public ManagedSessionImpl(ConnectionFactory factory, Destination destination) throws ResourceException
ResourceException
public ManagedConnectionMetaData getMetaData()
ManagedConnection
getMetaData
in interface ManagedConnection
public LocalTransaction getLocalTransaction() throws ResourceException
ManagedConnection
getLocalTransaction
in interface ManagedConnection
ResourceException
public XAResource getXAResource() throws ResourceException
ManagedConnection
getXAResource
in interface ManagedConnection
ResourceException
public void addConnectionEventListener(ConnectionEventListener listener)
ManagedConnection
addConnectionEventListener
in interface ManagedConnection
public void removeConnectionEventListener(ConnectionEventListener listener)
ManagedConnection
removeConnectionEventListener
in interface ManagedConnection
public ConnectionEventListener getConnectionEventListener()
public java.lang.Object getConnection(javax.security.auth.Subject subj, ConnectionRequestInfo info)
ManagedConnection
getConnection
in interface ManagedConnection
public void associateConnection(java.lang.Object o) throws ResourceException
ManagedConnection
associateConnection
in interface ManagedConnection
ResourceException
public java.io.PrintWriter getLogWriter()
ManagedConnection
getLogWriter
in interface ManagedConnection
public void setLogWriter(java.io.PrintWriter out)
ManagedConnection
setLogWriter
in interface ManagedConnection
public void cleanup() throws ResourceException
ManagedConnection
cleanup
in interface ManagedConnection
ResourceException
public void destroy() throws ResourceException
ManagedConnection
destroy
in interface ManagedConnection
ResourceException