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

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

Re: preserve custom exchange id or custom message id

2017-11-29 Thread Dennis Holunder
but as far as I understand uuid generator doesn't have access to the current exchange, so there is no way to append my id from body to the exchange id or message id 2017-11-29 15:02 GMT+01:00 Claus Ibsen-2 [via Camel] : > If you want to have the id transffered

Re: netty4-http increase max content length

2017-11-29 Thread Mark
Sorry to be a pest, I still cannot figure out how to get the netty component to handle more than 1 MB. I've tried all sorts of configuration options: restConfiguration() .component("netty4-http") .bindingMode(RestBindingMode.off) .contextPath("whatever")

Re: preserve custom exchange id or custom message id

2017-11-29 Thread Claus Ibsen
Yeah that is correct, so you would have to either overwrite the existing breadcrumbId header, or use some of your own header for this "special id" On Wed, Nov 29, 2017 at 4:45 PM, Dennis Holunder wrote: > but as far as I understand uuid generator doesn't have access to the

Re: preserve custom exchange id or custom message id

2017-11-29 Thread Dicken George
I had a similar situation and i used the MDC logger to add a new header "x-correlation-id" or "x-header-id" and stored my unique id in the exchange as well as on the spring endpoint to track my requests. And with MDCUnitofWork class extension to my class I was able to access my current exchange as

Re: preserve custom exchange id or custom message id

2017-11-29 Thread Dennis Holunder
Well, at least in my case its much easier to overwrite the exchange id in each route part. 2017-11-29 17:10 GMT+01:00 Claus Ibsen-2 [via Camel] : > Yeah that is correct, so you would have to either overwrite the > existing breadcrumbId header, or use some of

Re: Rép. : Re: Restconfiguration using Servlet with Camel in OSGI Karaf

2017-11-29 Thread Daniel Langevin
Hi, Finally i found the configuration for Spring Configuration (Simply adding OSGI shema) Thank you for the track to follow Here is the way. A) file name ABC-REST-0.0.1.XML deployed containg all routes for the system ABC. http://www.springframework.org/schema/beans;

Re: OpenHub framework - Apache Camel, but improved ...

2017-11-29 Thread Juza Petr
Dears, thank you for your feedback and I’m sorry for late respond. Firstly I would like to explain some following points: - We released the first public version after several years of internal use. We started working with Camel at 2009 (probably version 2.12) and we sent you several fixes

Re: netty4-http increase max content length

2017-11-29 Thread Mark
Thanks for responding Mary. I have tried to change the chunkedMaxContentLength setting, but my endpoint still fails when uploading a file greater than 1 MB (see what I’ve tried below). What I’m trying to figure out is, how do I configure the netty4-http component to use the updated

Re: netty4-http increase max content length

2017-11-29 Thread Mary Cochran
Have you tried the 'chunkedMaxContentLength' setting? Looks like the default is 1mb http://camel.apache.org/netty4-http.html Mary Cochran Mary Cochran Red Hat Consulting mcoch...@redhat.com (419) 543-0531 On Wed, Nov 29, 2017 at 10:02 AM, Mark wrote: > Sorry to be a