You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Santiago Acosta <sa...@intermodaltelematics.com> on 2023/07/14 10:51:55 UTC

Spring RabbitMQ Component

I have seen that there is a way to configure Publisher Confirms in the old
RabbitMQ component but I have not found an equivalent in the Spring version
of the component.

I understand that Spring provides 3 publisher confirm modes when using
CachingConnectionFactory: NONE, SIMPLE, CORRELATED.

Is configuring the CCF directly the intended way to configure Publisher
Confirms in Camel?

-- 
Best regards,

*Santiago Acosta Arreaza*

Re: Spring RabbitMQ Component

Posted by Santiago Acosta <sa...@intermodaltelematics.com>.
thanks but I forgot to mention we do not use spring-boot so there is no
auto-wiring or annotation magic and we also do not use the xml declaration
of routes.

We do everything programmatically so I was targeting something like the
following

return CachingConnectionFactory().apply {
    ...
    this.setPublisherConfirmType(CachingConnectionFactory.ConfirmType.SIMPLE)
}

and simply adding the connection factory to the registry to make it
available to the routes.

You mentioned an AmqpAdmin which I am not privy to. I will have to read
more on the subject

On Fri, Jul 14, 2023 at 1:18 PM Federico Mariani <
federico.mariani.1990@gmail.com> wrote:

> IRONSCALES couldn't recognize this email as this is the first time you
> received an email from this sender federico.mariani.1990 @ gmail.com
>
> Hello,
>
> You can leverage spring-boot autoconfiguration using
> spring.rabbitmq.publisher-confirm-type
> and spring.rabbitmq.publisher-returns properties and camel will autowire
> the CCF and the AmqpAdmin.
>
> Il giorno ven 14 lug 2023 alle ore 12:55 Santiago Acosta <
> santiago.acosta@intermodaltelematics.com> ha scritto:
>
> > I have seen that there is a way to configure Publisher Confirms in the
> old
> > RabbitMQ component but I have not found an equivalent in the Spring
> version
> > of the component.
> >
> > I understand that Spring provides 3 publisher confirm modes when using
> > CachingConnectionFactory: NONE, SIMPLE, CORRELATED.
> >
> > Is configuring the CCF directly the intended way to configure Publisher
> > Confirms in Camel?
> >
> > --
> > Best regards,
> >
> > *Santiago Acosta Arreaza*
> >
>


-- 
Best regards,

*Santiago Acosta Arreaza*

Re: Spring RabbitMQ Component

Posted by Federico Mariani <fe...@gmail.com>.
Hello,

You can leverage spring-boot autoconfiguration using
spring.rabbitmq.publisher-confirm-type
and spring.rabbitmq.publisher-returns properties and camel will autowire
the CCF and the AmqpAdmin.

Il giorno ven 14 lug 2023 alle ore 12:55 Santiago Acosta <
santiago.acosta@intermodaltelematics.com> ha scritto:

> I have seen that there is a way to configure Publisher Confirms in the old
> RabbitMQ component but I have not found an equivalent in the Spring version
> of the component.
>
> I understand that Spring provides 3 publisher confirm modes when using
> CachingConnectionFactory: NONE, SIMPLE, CORRELATED.
>
> Is configuring the CCF directly the intended way to configure Publisher
> Confirms in Camel?
>
> --
> Best regards,
>
> *Santiago Acosta Arreaza*
>