narayana-spring-boot
narayana-spring-boot copied to clipboard
SynchedLocalTransactionFailedException sending a message to a queue
I'm trying to send a message inside a transaction to a queue using a JmsTemplate which uses a XAConnectionFactory wrapped with XAConnectionFactoryWrapper#wrapConnectionFactory
and pooling enabled, but I have an Exception:
org.springframework.jms.connection.SynchedLocalTransactionFailedException: Local JMS transaction failed to commit; nested exception is javax.jms.IllegalStateException: The session has already been closed
I have a demo project to reproduce this behavior here