R: Guaranteed deliveries for spring-rabbitmq producer

2023-06-09 Thread Marco Cordiner
Thanks,
Ok, I thought it was a general exception handling problem; instead I fell into 
a bug related to the specific case of missing RabbitMQ exchange.
So I'll wait for version 3.21.0 or 4.0 to have the issue fixed.

Regards.




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
-Messaggio originale-
Da: Claus Ibsen  
Inviato: lunedì 5 giugno 2023 18:45
A: users@camel.apache.org
Oggetto: Re: Guaranteed deliveries for spring-rabbitmq producer

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  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(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


Re: Guaranteed deliveries for spring-rabbitmq producer

2023-06-05 Thread Claus Ibsen
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  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(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


Guaranteed deliveries for spring-rabbitmq producer

2023-06-05 Thread Marco Cordiner
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(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