narayana-spring-boot icon indicating copy to clipboard operation
narayana-spring-boot copied to clipboard

SynchedLocalTransactionFailedException sending a message to a queue

Open oburgosm opened this issue 2 years ago • 0 comments

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

oburgosm avatar Nov 15 '22 15:11 oburgosm