Re: preserve custom exchange id or custom message id

2017-11-30 Thread Dennis Holunder
, the appended part is lost >>>> >>>> >>>> >>>> from("direct:source") >>>> >>>> .setBody("id from DB) >>>> >>>> .process(exchange-> >>>> >>>> exchang

Re: preserve custom exchange id or custom message id

2017-11-30 Thread Claus Ibsen
>> >>>> // now in queue "-myid-" is not present >>> >>>> from(queue()).process(exchange -> >>> >>>> System.out.println(exchange.getExchangeId())); >>> >>>> >>> >>>> >>> >>>> Is the

Re: preserve custom exchange id or custom message id

2017-11-30 Thread Dennis Holunder
> .process(exchange-> >> >>>> exchange.setExchangeId(exchange.getExchangeId() + "-myid-" + >> >>>> exchange.getIn().getBody())) >> >>>>.process(exchange -> System.out.println(exchange.getExchangeId()) >> >>>>

Re: preserve custom exchange id or custom message id

2017-11-29 Thread Dicken George
; to(queue); > >>>> > >>>> // now in queue "-myid-" is not present > >>>> from(queue()).process(exchange -> > >>>> System.out.println(exchange.getExchangeId())); > >>>> > >>>> > &g

Re: preserve custom exchange id or custom message id

2017-11-29 Thread Dennis Holunder
gt;>>> to(queue); >>>> >>>> // now in queue "-myid-" is not present >>>> from(queue()).process(exchange -> >>>> System.out.println(exchange.getExchangeId())); >>>> >>>> >>>> Is there a way to

Re: preserve custom exchange id or custom message id

2017-11-29 Thread Claus Ibsen
to(queue); >>> >>> // now in queue "-myid-" is not present >>> from(queue()).process(exchange -> >>> System.out.println(exchange.getExchangeId())); >>> >>> >>> Is there a way to preserver the changed id? >>> >>> Dennis >&g

Re: preserve custom exchange id or custom message id

2017-11-29 Thread Dennis Holunder
avsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2 > > > > If you reply to this email, your message will be added to the discussion > below: > http://camel.465427.n5.nabble.com/preserve-custom-exchange-id-or-custom-message-id-tp5815908p5815909.html > To unsubscribe from Camel, click here. > NAML

Re: preserve custom exchange id or custom message id

2017-11-29 Thread Claus Ibsen
If you want to have the id transffered over the wire, you cannot use exchange id, as its transient. You can use the breadcrumb-id, and plugin a different uuid generator in Camel. http://camel.apache.org/mdc-logging.html On Wed, Nov 29, 2017 at 2:40 PM, Dennis Holunder wrote: > Hi, > > for easier

preserve custom exchange id or custom message id

2017-11-29 Thread Dennis Holunder
Hi, for easier reading logs I'd like to append db record id to the exchange id, but it only works in current route. After the exchange is sent to queue, the appended part is lost from("direct:source") .setBody("id from DB) .process(exchange-> exchange.setExchangeId(exchange.getExchangeId(