Thanks Claus. I'm gonna try these and see what happen.

Enviado desde Yahoo Mail para Android 
 
  El sáb., 2 de jul. de 2022 a la(s) 4:08, Claus Ibsen<claus.ib...@gmail.com> 
escribió:   Hi

Oh and there is also a spring jms specici errorHandler you can try to hook
in a custom implementation
https://camel.apache.org/components/3.17.x/jms-component.html#_component_option_errorHandler

On Sat, Jul 2, 2022 at 9:06 AM Claus Ibsen <claus.ib...@gmail.com> wrote:

> Hi
>
> This is not possible / or difficult, as it depends on a combination of JMS
> API / JMS Client vendor / Spring JMS / Camel JMS / and the JMS connection
> pool you use / and how all of this has been configured.
>
> The spring-jms (which is used by camel-jms) is handling connectivity
> issues and have built-in re-connection and failover to other brokers in the
> network.
> the camel-jms component cannot hook into this and customize this behavior.
>
> There is however the JMS ExceptionListener from the JMS Spec you can try
> to use
>
> https://camel.apache.org/components/3.17.x/jms-component.html#_component_option_exceptionListener
>
> Or maybe some way of wrapping the JMS connection pool to see if you can
> capture if a connection has connectivity issues.
>
> Or maybe also try to look at if there are any special spring jms health
> check today, maybe in the spring boot eco-system.
> As a health check may have found a way to capture this information.
>
> I will be on PTO for 3 weeks and can therefore not answer in due time.
>
>
>
>
>
>
> On Sat, Jul 2, 2022 at 7:41 AM z8...@yahoo.com.ar.INVALID
> <z8...@yahoo.com.ar.invalid> wrote:
>
>> Hi,
>> Is there any way to handle exceptions when they happen in the from side
>> of a jms endpoint? For example:
>> <route id="example" streamCache="true"> <from
>> uri="amq:queue:{{activemq_origin_queue}}?transacted=true"/>  <to
>> uri="file:{{dir_output}}"/>  </route>
>> How should I handle a Connection problem when I'm consuming from an mq?
>> I tried sorrounding from with doTry/doCatch, using <onException> and
>> <errorHandler>, but couldn't make it work.
>> Thanks in advanced.
>>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>


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

Reply via email to