Interface XADataSourceWrapper

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface XADataSourceWrapper
Strategy interface used to wrap an XADataSource enrolling it with a JTA TransactionManager.
Since:
2.0.0
  • Method Details

    • wrapDataSource

      DataSource wrapDataSource(XADataSource dataSource) throws Exception
      Wrap the specific XADataSource and enroll it with a JTA TransactionManager.
      Parameters:
      dataSource - the data source to wrap
      Returns:
      the wrapped data source
      Throws:
      Exception - if the data source cannot be wrapped