public class JCAManagedConnection extends Object implements javax.resource.spi.ManagedConnection, javax.resource.spi.ManagedConnectionMetaData
| Constructor and Description | 
|---|
| JCAManagedConnection(JCAManagedConnectionFactory mcf,
                    JCAConnectionRequestInfo cri)Construct the managed connection. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)Adds a listener. | 
| void | associateConnection(Object connection)Used by the container to change the association of an
 application-level connection handle with a ManagedConneciton instance. | 
| void | cleanup()Application server calls this method to force any cleanup on
 the ManagedConnection instance. | 
| void | closeHandle(JCASessionHandle handle)Close the handle. | 
| void | destroy()Destroys the physical connection to the underlying resource manager. | 
| Object | getConnection(Subject subject,
             javax.resource.spi.ConnectionRequestInfo cri)Creates a new connection handle for the underlying physical
 connection represented by the ManagedConnection instance. | 
| JCAConnectionRequestInfo | getConnectionRequestInfo()Return the connection request info. | 
| String | getEISProductName()Return the product name. | 
| String | getEISProductVersion()Return the product version. | 
| javax.resource.spi.LocalTransaction | getLocalTransaction()Returns an javax.resource.spi.LocalTransaction instance. | 
| PrintWriter | getLogWriter()Get the log writer. | 
| JCAManagedConnectionFactory | getManagedConnectionFactory()Return the managed connection factory. | 
| int | getMaxConnections()Return number of max connections. | 
| javax.resource.spi.ManagedConnectionMetaData | getMetaData()Gets the metadata information for this connection's underlying
 EIS resource manager instance. | 
| Session | getSession(JCASessionHandle handle)Return the session. | 
| String | getUserName()Return the user name. | 
| XAResource | getXAResource()Returns an javax.transaction.xa.XAresource instance. | 
| void | log(String message)Log a message. | 
| void | log(String message,
   Throwable exception)Log a message. | 
| void | removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)Remove a listener. | 
| void | sendrrorEvent(JCASessionHandle handle,
             Exception cause)Send connection error event. | 
| void | sendTxCommittedEvent(JCASessionHandle handle)Send transaction committed event. | 
| void | sendTxRolledbackEvent(JCASessionHandle handle)Send transaction rolledback event. | 
| void | sendTxStartedEvent(JCASessionHandle handle)Send transaction started event. | 
| void | setLogWriter(PrintWriter logWriter)Set the log writer. | 
public JCAManagedConnection(JCAManagedConnectionFactory mcf, JCAConnectionRequestInfo cri) throws javax.resource.ResourceException
javax.resource.ResourceExceptionpublic JCAManagedConnectionFactory getManagedConnectionFactory()
public JCAConnectionRequestInfo getConnectionRequestInfo()
public PrintWriter getLogWriter()
getLogWriter in interface javax.resource.spi.ManagedConnectionpublic void setLogWriter(PrintWriter logWriter) throws javax.resource.ResourceException
setLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic Object getConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
getConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void destroy()
             throws javax.resource.ResourceException
destroy in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void cleanup()
             throws javax.resource.ResourceException
cleanup in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void associateConnection(Object connection) throws javax.resource.ResourceException
associateConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic XAResource getXAResource() throws javax.resource.ResourceException
getXAResource in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic javax.resource.spi.LocalTransaction getLocalTransaction()
                                                        throws javax.resource.ResourceException
getLocalTransaction in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic javax.resource.spi.ManagedConnectionMetaData getMetaData()
                                                         throws javax.resource.ResourceException
getMetaData in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void closeHandle(JCASessionHandle handle)
public Session getSession(JCASessionHandle handle)
public String getEISProductName() throws javax.resource.ResourceException
getEISProductName in interface javax.resource.spi.ManagedConnectionMetaDatajavax.resource.ResourceExceptionpublic String getEISProductVersion() throws javax.resource.ResourceException
getEISProductVersion in interface javax.resource.spi.ManagedConnectionMetaDatajavax.resource.ResourceExceptionpublic int getMaxConnections()
                      throws javax.resource.ResourceException
getMaxConnections in interface javax.resource.spi.ManagedConnectionMetaDatajavax.resource.ResourceExceptionpublic String getUserName() throws javax.resource.ResourceException
getUserName in interface javax.resource.spi.ManagedConnectionMetaDatajavax.resource.ResourceExceptionpublic void log(String message)
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
addConnectionEventListener in interface javax.resource.spi.ManagedConnectionpublic void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
removeConnectionEventListener in interface javax.resource.spi.ManagedConnectionpublic void sendrrorEvent(JCASessionHandle handle, Exception cause)
public void sendTxCommittedEvent(JCASessionHandle handle)
public void sendTxRolledbackEvent(JCASessionHandle handle)
public void sendTxStartedEvent(JCASessionHandle handle)
Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.