Multiples connection factories with unequal isPublisherConfirms in RabbitTemplate #1431
LeonardoFerreiraa
started this conversation in
General
Replies: 1 comment 3 replies
-
This is probably historical. The preferred way for to obtain a confirmation is (now) via the For backwards compatibility, I suppose the check should be performed if the user provides callbacks; we could also consider deprecating the callbacks. I have no objections otherwise; I will create an issue from this. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys, I have a case here that I want to use 2 connection factories in the same
RabbitTemplate
. OneCachingConnectionFactory
withConfirmType = Correlated
and another with typePooledCachingConnectionFactory
. I need this because in some cases I want to be sure of the message delivery and in others, I don't need this.I found in the
RabbitTemplate
the propertysendConnectionFactorySelectorExpression
that allows me to have more than oneConnectionFactory
based on a SPEL, but for this, I need an instance ofAbstractRoutingConnectionFactory
that has a validation avoiding differentisPublisherConfirms
andisPublisherReturns
values between the factories.If
RabbitTemplate
didn't depend onAbstractRoutingConnectionFactory
butRoutingConnectionFactory
, and some more small changes inconfirmsOrReturnsCapable
property, it would be possible;What do you think about it?
Beta Was this translation helpful? Give feedback.
All reactions