Hi

I think you can configure a custom errorHandler on the JMS endpoint /
component and there you can log only what you want. See details at
https://github.com/apache/camel/blob/master/components/camel-jms/src/main/docs/jms-component.adoc

On Tue, Dec 19, 2017 at 6:54 PM, Кристина Солдатко <k.solda...@gmail.com> wrote:
> Hi.
>
> My service use MQ and receives some data from it. When connection to MQ is
> broken - I can see in logs following situation: error report is logged as
> multiple line text like:
> December 19, 2017 5:32:47 PM UTC[Camel (camel-1) thread #0 -
> JmsConsumer[ROUTER]]
> com.ibm.msg.client.jms.internal.JmsProviderExceptionListener
> An exception has been delivered to the connection's exception listener: '
>                        Message :
> com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ1107: A problem with
> this connection has occurred.
> An error has occurred with the IBM MQ JMS connection.
> Use the linked exception to determine the cause of this error.
>                          Class : class
> com.ibm.msg.client.jms.DetailedJMSException
>
>  and after that correct exception messages
> {"@timestamp":"2017-12-19T17:32:48.043+00:00","@version":1,"message":"Listener
> exception overridden by rollback
> exception","logger_name":"org.apache.camel.component.jms.DefaultJmsMessageListenerContainer","thread_name":"Camel
> (camel-1) thread #1 -
> JmsConsumer[ROUTER]","level":"ERROR","level_value":40000,"stack_trace":"com.ibm.msg.client.jms.DetailedJMSException:
> JMSWMQ2002: Failed to get a message from destination 'ROUTER'.\n\tat
> etc
>
>
> I would like to suppress the first unedited message and receive only
> JSON-formed messages. Is it possible to configure Camel to suppress such
> crush reports?
> Thank you in advance.
> --
> Best regards, Kristina Soldatko.



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

Reply via email to