org.apache.aries.transaction.jdbc
Class RecoverableDataSource

java.lang.Object
  extended by org.apache.aries.transaction.jdbc.internal.XADatasourceEnlistingWrapper
      extended by org.apache.aries.transaction.jdbc.RecoverableDataSource
All Implemented Interfaces:
Serializable, Wrapper, CommonDataSource, DataSource

public class RecoverableDataSource
extends XADatasourceEnlistingWrapper

Defines a JDBC DataSource that will auto-enlist into existing XA transactions. The DataSource will also be registered with the Aries/Geronimo transaction manager in order to provide proper transaction recovery at startup. Other considerations such as connection pooling and error handling are completely ignored.

See Also:
Serialized Form

Constructor Summary
RecoverableDataSource()
           
 
Method Summary
 String getName()
           
 void setName(String name)
          The unique name for this managed XAResource.
 void start()
           
 
Methods inherited from class org.apache.aries.transaction.jdbc.internal.XADatasourceEnlistingWrapper
equals, getConnection, getConnection, getDataSource, getLoginTimeout, getLogWriter, getParentLogger, getTransactionManager, hashCode, isWrapperFor, setDataSource, setLoginTimeout, setLogWriter, setTransactionManager, unwrap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecoverableDataSource

public RecoverableDataSource()
Method Detail

getName

public String getName()

setName

public void setName(String name)
The unique name for this managed XAResource. This name will be used by the transaction manager to recover transactions.

Parameters:
name -

start

public void start()


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.