Package org.springframework.boot.jta
Interface XADataSourceWrapper
- All Known Implementing Classes:
AtomikosXADataSourceWrapper
,BitronixXADataSourceWrapper
,NarayanaXADataSourceWrapper
public interface XADataSourceWrapper
Strategy interface used to wrap a JMSXADataSource
enrolling it with a JTATransactionManager
.- Since:
- 1.2.0
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataSource
wrapDataSource(XADataSource dataSource)
Wrap the specificXADataSource
and enroll it with a JTATransactionManager
.
Method Detail
wrapDataSource
DataSource wrapDataSource(XADataSource dataSource) throws Exception
Wrap the specificXADataSource
and enroll it with a JTATransactionManager
.- Parameters:
dataSource
- the data source to wrap- Returns:
- the wrapped data source
- Throws:
Exception
- if the data source cannot be wrapped