[ANNOUNCEMENT] Apache Camel 2.20.3 Released

2018-03-30 Thread Gregor Zurowski
The Camel community announces the immediate availability of the Camel 2.20.3 patch release. This release contains 33 fixes and improvements applied in the past weeks on the 2.20.x branch. The artifacts are published and ready for you to download [1] either from the Apache mirrors or from the Centr

Writing file content from a custom header

2018-03-30 Thread Jonathan Cook
Hi, I wondered if it was possible when using a file producer when writing file content to take the file from a custom header rather than the message body? For example imagine in one processor I store the file for later e.g) message.setHeader("FILE_OBJECT", file); Then later is there a way w

Re: Writing file content from a custom header

2018-03-30 Thread Alex Dettinger
Hi Johnathan, Writing files directly from a header is not possible afair. In such situation, you would merely set the body from the DSL, something like: setBody(simple("${in.header.FILE}")). Depending on your integration logic, you may also be interested in the new claim check eip implement

Re: Writing file content from a custom header

2018-03-30 Thread Deepak Mantri
You can set the body from header value using simple in java dsl before passing the exchange to file component. On Fri, 30 Mar 2018, 5:17 pm Jonathan Cook, wrote: > Hi, > > I wondered if it was possible when using a file producer when writing > file content to take the file from a custom header r

Fwd: jdbc: with non-named parameter?

2018-03-30 Thread Tom Oehser
Hey - trying to share some SQL between a Camel jdbc: app and a Spring jdbc-template app... the SQL is like     "blah blah ? blah blah" - can't figure out how to get camel jdbc: to support the ? (regular non-named) parameter. I see the named parameter support - I could change the SQL - but -