|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.jdbc.AbstractDataSourceBean com.atomikos.jdbc.AtomikosDataSourceBean
public class AtomikosDataSourceBean
The preferred class for using Atomikos connection pooling. Use an instance of this class if you want to use Atomikos JTA-enabled connection pooling. All you need to do is construct an instance and set the required properties as outlined below. The resulting bean will automatically register with the transaction service (for recovery) and take part in active transactions. All SQL done over connections (gotten from this class) will participate in JTA transactions.
Constructor Summary | |
---|---|
AtomikosDataSourceBean()
|
Method Summary | |
---|---|
protected void |
doClose()
|
protected ConnectionFactory |
doInit()
|
XADataSource |
getXaDataSource()
Gets the configured XADataSource (if any). |
String |
getXaDataSourceClassName()
Get the XADataSource class name. |
Properties |
getXaProperties()
Gets the properties used to configure the XADataSource. |
protected String |
printXaProperties()
|
void |
setXaDataSource(XADataSource xaDataSource)
Sets the XADataSource directly - instead of providing the xaDataSourceClassName and xaProperties. |
void |
setXaDataSourceClassName(String xaDataSourceClassName)
Sets the fully qualified underlying XADataSource class name. |
void |
setXaProperties(Properties xaProperties)
Sets the properties (name,value pairs) used to configure the XADataSource. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AtomikosDataSourceBean()
Method Detail |
---|
protected String printXaProperties()
public Properties getXaProperties()
public void setXaProperties(Properties xaProperties)
xaProperties
- public String getXaDataSourceClassName()
public void setXaDataSourceClassName(String xaDataSourceClassName)
xaDataSourceClassName
- public XADataSource getXaDataSource()
public void setXaDataSource(XADataSource xaDataSource)
xaDataSource
- protected ConnectionFactory doInit() throws Exception
doInit
in class AbstractDataSourceBean
Exception
protected void doClose()
doClose
in class AbstractDataSourceBean
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |