|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A ManagedConnection instance represents a connection to the underlying recource. A ManagedConnection provides access to the two transaction interfaces, XAResource and LocalTransaction. These interfaces are used to manage transactions on the resource.
| Method Summary | |
void |
addConnectionEventListener(ConnectionEventListener listener)
Adds a connection event listener |
void |
associateConnection(Object connection)
Associates a new application level connection handle with the connection. |
void |
cleanup()
Application server calls this to force cleanup of connection. |
void |
destroy()
Destroys the connection to the underlying resource. |
Object |
getConnection(Subject subject,
ConnectionRequestInfo cxRequestInfo)
Creates a new connection handle for the underlying connection. |
LocalTransaction |
getLocalTransaction()
Returns a LocalTransaction instance. |
PrintWriter |
getLogWriter()
Gets the logwriter for this instance. |
ManagedConnectionMetaData |
getMetaData()
Gets metadata inormation for this instances underlying resource manager instance. |
XAResource |
getXAResource()
Returns an XAResource instance. |
void |
removeConnectionEventListener(ConnectionEventListener listener)
Removes a connection event listener |
void |
setLogWriter(PrintWriter out)
Sets the logwriter for this instance. |
| Method Detail |
public Object getConnection(Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException
subject - the subjectcxRequestInfo - the connection request info
ResourceException - for a generic error
ResourceAdapterInternalException - for an internal error in the
resource adapter
SecurityException - for a security problem
CommException - for a communication failure with the EIS
EISSystemException - for an error from the EIS
public void destroy()
throws ResourceException
ResourceException - for a generic error
IllegalStateException - if the connection is not a legal state for destruction
public void cleanup()
throws ResourceException
ResourceException - for a generic error
ResourceAdapterInternalException - for an internal error in the
resource adapter
IllegalStateException - if the connection is not a legal state for cleanuppublic void associateConnection(Object connection) throws ResourceException
connection - the connection
ResourceException - for a generic error
IllegalStateException - for an illegal state
ResourceAdapterInternalException - for an internal error in the
resource adapterpublic void addConnectionEventListener(ConnectionEventListener listener)
listener - the listenerpublic void removeConnectionEventListener(ConnectionEventListener listener)
listener - the listenerpublic XAResource getXAResource() throws ResourceException
ResourceException - for a generic error
NotSupportedException - if not supported
ResourceAdapterInternalException - for an internal error in the
resource adapterpublic LocalTransaction getLocalTransaction() throws ResourceException
ResourceException - for a generic error
NotSupportedException - if not supported
ResourceAdapterInternalException - for an internal error in the
resource adapterpublic ManagedConnectionMetaData getMetaData() throws ResourceException
ResourceException - for a generic error
NotSupportedException - if not supportedpublic PrintWriter getLogWriter() throws ResourceException
ResourceException - for a generic errorpublic void setLogWriter(PrintWriter out) throws ResourceException
out - the writer
ResourceException - for a generic error
ResourceAdapterInternalException - for an internal error in the
resource adapter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||