Interface XAConnectionFactoryWrapper

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 XAConnectionFactoryWrapper
Strategy interface used to wrap a JMS XAConnectionFactory enrolling it with a JTA TransactionManager.
Since:
2.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.jms.ConnectionFactory
    wrapConnectionFactory(jakarta.jms.XAConnectionFactory connectionFactory)
    Wrap the specific XAConnectionFactory and enroll it with a JTA TransactionManager.
  • Method Details

    • wrapConnectionFactory

      jakarta.jms.ConnectionFactory wrapConnectionFactory(jakarta.jms.XAConnectionFactory connectionFactory) throws Exception
      Wrap the specific XAConnectionFactory and enroll it with a JTA TransactionManager.
      Parameters:
      connectionFactory - the connection factory to wrap
      Returns:
      the wrapped connection factory
      Throws:
      Exception - if the connection factory cannot be wrapped