Michal Vlček

Results 7 comments of Michal Vlček

OK, hint from me, but am not really sure if I am missing something or not `RabbitTemplate.isChannelLocallyTransacted()` looks like following: ```java protected boolean isChannelLocallyTransacted(Channel channel) { return isChannelTransacted() && !ConnectionFactoryUtils.isChannelTransactional(channel,...

> The issue is that when using the `RabbitTransactionManager`, the connection is made by the transaction manager, not the template, and he knows nothing about the lookup key. > >...

I used `sendConnectionFactorySelectorExpression` to correctly "route" message instead of using suggested `SimpleResourceHolder.bind` so edit our code to use `SimpleResourceHolder.bind` approach without need of `sendConnectionFactorySelectorExpression` and after those changes it works...

> That said, I don't see Boot auto-configuring a RabbitTransactionManager; if you have a small project that shows this behavior, I can take a look at it. not needed anymore,...

so possible workarround, instead of using ```java SortOptionsBuilders.score().order(SortOrder.Desc).build(); ``` use ```java SortOptions.of(so -> so.score(s -> s.order(SortOrder.Desc))) ```