@FunctionalInterface
public interface XADataSourceWrapper
XADataSource
enrolling it with a JTA
TransactionManager
.Modifier and Type | Method and Description |
---|---|
javax.sql.DataSource |
wrapDataSource(javax.sql.XADataSource dataSource)
Wrap the specific
XADataSource and enroll it with a JTA
TransactionManager . |
javax.sql.DataSource wrapDataSource(javax.sql.XADataSource dataSource) throws java.lang.Exception
XADataSource
and enroll it with a JTA
TransactionManager
.dataSource
- the data source to wrapjava.lang.Exception
- if the data source cannot be wrapped