|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | 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 (src) listener)
Adds a connection event listener |
void |
associateConnection(java.lang.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. |
java.lang.Object |
getConnection(javax.security.auth.Subject subject,
ConnectionRequestInfo (src) cxRequestInfo)
Creates a new connection handle for the underlying connection. |
LocalTransaction (src) |
getLocalTransaction()
Returns a LocalTransaction instance. |
java.io.PrintWriter |
getLogWriter()
Gets the logwriter for this instance. |
ManagedConnectionMetaData (src) |
getMetaData()
Gets metadata inormation for this instances underlying resource manager instance. |
XAResource (src) |
getXAResource()
Returns an XAResource instance. |
void |
removeConnectionEventListener(ConnectionEventListener (src) listener)
Removes a connection event listener |
void |
setLogWriter(java.io.PrintWriter out)
Sets the logwriter for this instance. |
Method Detail |
public java.lang.Object getConnection(javax.security.auth.Subject subject, ConnectionRequestInfo (src) cxRequestInfo) throws ResourceException (src)
subject
- the subjectcxRequestInfo
- the connection request info
ResourceException (src)
- for a generic error
ResourceAdapterInternalException (src)
- for an internal error in the
resource adapter
SecurityException (src)
- for a security problem
CommException (src)
- for a communication failure with the EIS
EISSystemException (src)
- for an error from the EISpublic void destroy() throws ResourceException (src)
ResourceException (src)
- for a generic error
IllegalStateException (src)
- if the connection is not a legal state for destructionpublic void cleanup() throws ResourceException (src)
ResourceException (src)
- for a generic error
ResourceAdapterInternalException (src)
- for an internal error in the
resource adapter
IllegalStateException (src)
- if the connection is not a legal state for cleanuppublic void associateConnection(java.lang.Object connection) throws ResourceException (src)
connection
- the connection
ResourceException (src)
- for a generic error
IllegalStateException (src)
- for an illegal state
ResourceAdapterInternalException (src)
- for an internal error in the
resource adapterpublic void addConnectionEventListener(ConnectionEventListener (src) listener)
listener
- the listenerpublic void removeConnectionEventListener(ConnectionEventListener (src) listener)
listener
- the listenerpublic XAResource (src) getXAResource() throws ResourceException (src)
ResourceException (src)
- for a generic error
NotSupportedException
- if not supported
ResourceAdapterInternalException (src)
- for an internal error in the
resource adapterpublic LocalTransaction (src) getLocalTransaction() throws ResourceException (src)
ResourceException (src)
- for a generic error
NotSupportedException
- if not supported
ResourceAdapterInternalException (src)
- for an internal error in the
resource adapterpublic ManagedConnectionMetaData (src) getMetaData() throws ResourceException (src)
ResourceException (src)
- for a generic error
NotSupportedException
- if not supportedpublic java.io.PrintWriter getLogWriter() throws ResourceException (src)
ResourceException (src)
- for a generic errorpublic void setLogWriter(java.io.PrintWriter out) throws ResourceException (src)
out
- the writer
ResourceException (src)
- for a generic error
ResourceAdapterInternalException (src)
- for an internal error in the
resource adapter
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |