Hi

Take a look at CAMEL-19008 it seems maybe what you asked for

On Mon, Jun 5, 2023 at 11:45 AM Marco Cordiner <m.cordi...@reply.it> wrote:

> Hi All,
> I'm trying to setup a simple camel route (camel.springboot 3.20.4) that
> exposes a rest endpoint, sends a message to RabbitMQ using the
> spring-rabbitmq component and finally replies to the rest endpoint with the
> outcome of enqueue.
> The ko response is managed through an onException clause within the route.
> When everything is ok the route works fine.
> The problem arises when something goes wrong in the RabbitMQ operation;
> for example if the exchange doesn't exist.
> In this case, despite of this error is logged:
>
>         Shutdown Signal: channel error; protocol method:
> #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no exchange
> 'exc-test' in vhost '/', class-id=60, method-id=40)
>
> no exception is thrown and the ruote terminates as if everything was ok.
> I couldn't find any parameter to instruct the spring-rabbitmq component to
> send back any exception to the calling route.
>
> Using the "old" rabbitmq component, I could achieve this result using the
> parameter "camel.component.rabbitmq.guaranteed-deliveries=true" but
> documentation recommends to use the Spring component instead.
>
> Is there an equivalent parameter for the spring-rabbitmq component?
>
> Regards.
> Marco
>
>
> Marco Cordiner
>
> Sytel Reply
> Via del Giorgione, 59
> 00147 - Roma - ITALY
> phone: +39 06 844341
> mobile: +39 335 1900199
> m.cordi...@reply.it
> www.reply.it
>


-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to