|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jackrabbit.jca.JCAManagedConnection
public class JCAManagedConnection
This class implements the managed connection for this resource adapter.
| Constructor Summary | |
|---|---|
JCAManagedConnection(JCAManagedConnectionFactory mcf,
JCAConnectionRequestInfo cri)
Construct the managed connection. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JCAManagedConnection(JCAManagedConnectionFactory mcf,
JCAConnectionRequestInfo cri)
throws javax.resource.ResourceException
javax.resource.ResourceException| Method Detail |
|---|
public JCAManagedConnectionFactory getManagedConnectionFactory()
public JCAConnectionRequestInfo getConnectionRequestInfo()
public PrintWriter getLogWriter()
getLogWriter in interface javax.resource.spi.ManagedConnection
public void setLogWriter(PrintWriter logWriter)
throws javax.resource.ResourceException
setLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public Object getConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
throws javax.resource.ResourceException
getConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public void destroy()
throws javax.resource.ResourceException
destroy in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public void cleanup()
throws javax.resource.ResourceException
cleanup in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public void associateConnection(Object connection)
throws javax.resource.ResourceException
associateConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public XAResource getXAResource()
throws javax.resource.ResourceException
getXAResource in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public javax.resource.spi.LocalTransaction getLocalTransaction()
throws javax.resource.ResourceException
getLocalTransaction in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public 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.ResourceException
public String getEISProductVersion()
throws javax.resource.ResourceException
getEISProductVersion in interface javax.resource.spi.ManagedConnectionMetaDatajavax.resource.ResourceException
public int getMaxConnections()
throws javax.resource.ResourceException
getMaxConnections in interface javax.resource.spi.ManagedConnectionMetaDatajavax.resource.ResourceException
public String getUserName()
throws javax.resource.ResourceException
getUserName in interface javax.resource.spi.ManagedConnectionMetaDatajavax.resource.ResourceExceptionpublic void log(String message)
public void log(String message,
Throwable exception)
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.ManagedConnection
public void sendrrorEvent(JCASessionHandle handle,
Exception cause)
public void sendTxCommittedEvent(JCASessionHandle handle)
public void sendTxRolledbackEvent(JCASessionHandle handle)
public void sendTxStartedEvent(JCASessionHandle handle)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||