Package org.springframework.boot.jms
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.
Strategy interface used to wrap a JMS
XAConnectionFactory enrolling it with a
JTA TransactionManager.- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.ConnectionFactorywrapConnectionFactory(jakarta.jms.XAConnectionFactory connectionFactory) Wrap the specificXAConnectionFactoryand enroll it with a JTATransactionManager.
-
Method Details
-
wrapConnectionFactory
jakarta.jms.ConnectionFactory wrapConnectionFactory(jakarta.jms.XAConnectionFactory connectionFactory) throws Exception Wrap the specificXAConnectionFactoryand 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
-