You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Transactional channel is always closed after commit when using ThreadChannelConnectionFactory as publisher #1524
Description
I am using a ThreadChannelConnectionFactory within a RabbitTemplate with setChannelTransacted=true.
The rabbitTemplate.send is invoked within a transaction excuted with a TransactionTemplate.
When the transaction created by TransactionTemplate is committed, the corresponding RabbitMQ Channel is always closed.
The ThreadChannelConnection/RabbitTemplate is not used within a MessageListenerContainer.
I am expecting the ThreadChannelConnection to cache the channel and not to close it.
In my opinion the if-statement seems not to be correct. In my case transactional is true, this.txChannels.get() is != null, but this.channels.get() is null. So transactional && this.txChannels.get() == null is false, but this.channels.get() == null is true and the channel is closed.
Activity
spring-projectsGH-1524: Fix ThreadChannelCF with Transactional
spring-projectsGH-1524: Fix ThreadChannelCF with Transactional
GH-1524: Fix ThreadChannelCF with Transactional
GH-1524: Fix ThreadChannelCF with Transactional