org.springframework.boot.jms

Interface XAConnectionFactoryWrapper

  • All Known Implementing Classes:
    AtomikosXAConnectionFactoryWrapper, BitronixXAConnectionFactoryWrapper
    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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      javax.jms.ConnectionFactory wrapConnectionFactory(javax.jms.XAConnectionFactory connectionFactory)
      Wrap the specific XAConnectionFactory and enroll it with a JTA TransactionManager.
    • Method Detail

      • wrapConnectionFactory

        javax.jms.ConnectionFactory wrapConnectionFactory(javax.jms.XAConnectionFactory connectionFactory)
                                                   throws java.lang.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:
        java.lang.Exception - if the connection factory cannot be wrapped