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. OneCachingConnectionFactorywithConfirmType = Correlatedand 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
RabbitTemplatethe propertysendConnectionFactorySelectorExpressionthat allows me to have more than oneConnectionFactorybased on a SPEL, but for this, I need an instance ofAbstractRoutingConnectionFactorythat has a validation avoiding differentisPublisherConfirmsandisPublisherReturnsvalues between the factories.If
RabbitTemplatedidn't depend onAbstractRoutingConnectionFactorybutRoutingConnectionFactory, and some more small changes inconfirmsOrReturnsCapableproperty, it would be possible;What do you think about it?
Beta Was this translation helpful? Give feedback.
All reactions