public class JRemoteManagedConnection
extends java.lang.Object
implements javax.resource.spi.ManagedConnection
The application server considers this managed connection to be the phyiscal connection to a remote jBASE instance.
Modifier | Constructor and Description |
---|---|
protected |
JRemoteManagedConnection()
Constructor for JRemoteManagedConnection
|
protected |
JRemoteManagedConnection(JConnection connection,
javax.security.auth.Subject subject)
Constructor for JRemoteManagedConnection
|
Modifier and Type | Method and Description |
---|---|
void |
addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener) |
void |
associateConnection(java.lang.Object handle) |
protected void |
begin()
Provided as a callback method for the LocalTransaction object.
|
void |
cleanup()
Put the connection into a state where it may be reused.
|
void |
closeHandle(WrappedJConnection handle) |
protected void |
commit()
Provided as a callback method for the LocalTransaction object.
|
void |
destroy() |
JConnection |
getConnection() |
java.lang.Object |
getConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo) |
javax.resource.spi.LocalTransaction |
getLocalTransaction() |
protected javax.resource.spi.ConnectionEvent |
getLocalTransactionCommittedEvent() |
protected javax.resource.spi.ConnectionEvent |
getLocalTransactionRolledbackEvent() |
protected javax.resource.spi.ConnectionEvent |
getLocalTransactionStartedEvent() |
java.io.PrintWriter |
getLogWriter() |
javax.resource.spi.ManagedConnectionMetaData |
getMetaData() |
protected javax.security.auth.Subject |
getSubject() |
TransactionManager |
getTransactionManager() |
javax.transaction.xa.XAResource |
getXAResource() |
protected boolean |
isAlive()
Test physical connection is alive.
|
protected boolean |
isInitialised() |
protected void |
notify(EventNotifier notifier,
javax.resource.spi.ConnectionEvent event) |
void |
removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener) |
protected void |
rollback()
Provided as a callback method for the LocalTransaction object.
|
protected void |
setInitialised(boolean init) |
void |
setLogWriter(java.io.PrintWriter out) |
protected JRemoteManagedConnection()
protected JRemoteManagedConnection(JConnection connection, javax.security.auth.Subject subject)
public JConnection getConnection()
protected javax.security.auth.Subject getSubject()
public java.lang.Object getConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
getConnection
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
ManagedConnection.getConnection(Subject, ConnectionRequestInfo)
public void closeHandle(WrappedJConnection handle)
public void destroy() throws javax.resource.ResourceException
destroy
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
ManagedConnection.destroy()
public void cleanup() throws javax.resource.ResourceException
Put the connection into a state where it may be reused. All transactions should be rolledback, all state reset, and connection specific resources released.
cleanup
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
ManagedConnection.cleanup()
public void associateConnection(java.lang.Object handle) throws javax.resource.ResourceException
associateConnection
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
ManagedConnection.associateConnection(Object)
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
addConnectionEventListener
in interface javax.resource.spi.ManagedConnection
ManagedConnection.addConnectionEventListener(ConnectionEventListener)
public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
removeConnectionEventListener
in interface javax.resource.spi.ManagedConnection
ManagedConnection.removeConnectionEventListener(ConnectionEventListener)
public javax.transaction.xa.XAResource getXAResource() throws javax.resource.ResourceException
getXAResource
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
ManagedConnection.getXAResource()
public javax.resource.spi.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException
getLocalTransaction
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
ManagedConnection.getLocalTransaction()
public javax.resource.spi.ManagedConnectionMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
ManagedConnection.getMetaData()
public void setLogWriter(java.io.PrintWriter out) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
ManagedConnection.setLogWriter(PrintWriter)
public java.io.PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
ManagedConnection.getLogWriter()
public TransactionManager getTransactionManager()
protected void begin() throws javax.resource.ResourceException
Provided as a callback method for the LocalTransaction object. The LocalTransaction object should call this method when starting a transaction to allow the connection event listeners to be notified.
javax.resource.ResourceException
protected void commit() throws javax.resource.ResourceException
Provided as a callback method for the LocalTransaction object. The LocalTransaction object should call this method when committing a transaction to allow the connection event listeners to be notified.
javax.resource.ResourceException
protected void rollback() throws javax.resource.ResourceException
Provided as a callback method for the LocalTransaction object. The LocalTransaction object should call this method when rolling a transaction back to allow the connection event listeners to be notified.
javax.resource.ResourceException
protected boolean isAlive()
Test physical connection is alive.
protected boolean isInitialised()
protected void setInitialised(boolean init)
protected void notify(EventNotifier notifier, javax.resource.spi.ConnectionEvent event)
protected javax.resource.spi.ConnectionEvent getLocalTransactionStartedEvent()
protected javax.resource.spi.ConnectionEvent getLocalTransactionCommittedEvent()
protected javax.resource.spi.ConnectionEvent getLocalTransactionRolledbackEvent()