Package 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 JMSXAConnectionFactory
enrolling it with a JTATransactionManager
.- Since:
- 2.0.0
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.jms.ConnectionFactory
wrapConnectionFactory(javax.jms.XAConnectionFactory connectionFactory)
Wrap the specificXAConnectionFactory
and enroll it with a JTATransactionManager
.
Method Detail
wrapConnectionFactory
javax.jms.ConnectionFactory wrapConnectionFactory(javax.jms.XAConnectionFactory connectionFactory) throws Exception
Wrap the specificXAConnectionFactory
and enroll it with a JTATransactionManager
.- Parameters:
connectionFactory
- the connection factory to wrap- Returns:
- the wrapped connection factory
- Throws:
Exception
- if the connection factory cannot be wrapped