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
ResourceExceptionpublic ManagedConnectionMetaData getMetaData()
ManagedConnectiongetMetaData in interface ManagedConnectionpublic LocalTransaction getLocalTransaction() throws ResourceException
ManagedConnectiongetLocalTransaction in interface ManagedConnectionResourceExceptionpublic XAResource getXAResource() throws ResourceException
ManagedConnectiongetXAResource in interface ManagedConnectionResourceExceptionpublic void addConnectionEventListener(ConnectionEventListener listener)
ManagedConnectionaddConnectionEventListener in interface ManagedConnectionpublic void removeConnectionEventListener(ConnectionEventListener listener)
ManagedConnectionremoveConnectionEventListener in interface ManagedConnectionpublic ConnectionEventListener getConnectionEventListener()
public java.lang.Object getConnection(javax.security.auth.Subject subj,
ConnectionRequestInfo info)
ManagedConnectiongetConnection in interface ManagedConnectionpublic void associateConnection(java.lang.Object o)
throws ResourceException
ManagedConnectionassociateConnection in interface ManagedConnectionResourceExceptionpublic java.io.PrintWriter getLogWriter()
ManagedConnectiongetLogWriter in interface ManagedConnectionpublic void setLogWriter(java.io.PrintWriter out)
ManagedConnectionsetLogWriter in interface ManagedConnectionpublic void cleanup()
throws ResourceException
ManagedConnectioncleanup in interface ManagedConnectionResourceExceptionpublic void destroy()
throws ResourceException
ManagedConnectiondestroy in interface ManagedConnectionResourceException