public interface ManagedConnection
| Modifier and Type | Method and Description |
|---|---|
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.
|
Object getConnection(Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException
subject - the subjectcxRequestInfo - the connection request infoResourceException - for a generic errorResourceAdapterInternalException - for an internal error in the
resource adapterSecurityException - for a security problemCommException - for a communication failure with the EISEISSystemException - for an error from the EISvoid destroy()
throws ResourceException
ResourceException - for a generic errorIllegalStateException - if the connection is not a legal state for destructionvoid cleanup()
throws ResourceException
ResourceException - for a generic errorResourceAdapterInternalException - for an internal error in the
resource adapterIllegalStateException - if the connection is not a legal state for cleanupvoid associateConnection(Object connection) throws ResourceException
connection - the connectionResourceException - for a generic errorIllegalStateException - for an illegal stateResourceAdapterInternalException - for an internal error in the
resource adaptervoid addConnectionEventListener(ConnectionEventListener listener)
listener - the listenervoid removeConnectionEventListener(ConnectionEventListener listener)
listener - the listenerXAResource getXAResource() throws ResourceException
ResourceException - for a generic errorNotSupportedException - if not supportedResourceAdapterInternalException - for an internal error in the
resource adapterLocalTransaction getLocalTransaction() throws ResourceException
ResourceException - for a generic errorNotSupportedException - if not supportedResourceAdapterInternalException - for an internal error in the
resource adapterManagedConnectionMetaData getMetaData() throws ResourceException
ResourceException - for a generic errorNotSupportedException - if not supportedPrintWriter getLogWriter() throws ResourceException
ResourceException - for a generic errorvoid setLogWriter(PrintWriter out) throws ResourceException
out - the writerResourceException - for a generic errorResourceAdapterInternalException - for an internal error in the
resource adapterCopyright © 2012 JBoss by Red Hat. All Rights Reserved.