Re: [Camel SQL] CamelSqlRetrieveGeneratedKeys attribute delete all headers
Are you using batch statements? (batch=true in endpoint URI) We do copy headers IN→OUT ( https://github.com/apache/camel/blob/camel-2.14.x/components/camel-sql/src/main/java/org/apache/camel/component/sql/SqlProducer.java#L124-L125) but it seems only in non-batch mode. If this is a case (or if it still doesn't work for you) please create JIRA issue at https://issues.apache.org/jira/browse/CAMEL. regards Grzegorz Grzybek 2015-02-09 17:40 GMT+01:00 fabrizio.spataro : > Hello everyone, > > I am using Camel (2.14.1) SQL component, with > *CamelSqlRetrieveGeneratedKeys=true*. > > After an insert operation i have a correct CamelSqlGeneratedKeyRows value > but *I am lost all my previous header params.* > > Is it a bug? > > There is any param to preserve my headers? > > Tnkx > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-SQL-CamelSqlRetrieveGeneratedKeys-attribute-delete-all-headers-tp5762512.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
Re: [Camel SQL] CamelSqlRetrieveGeneratedKeys attribute delete all headers
Hi Yes its a bug. I was fixing another issue in camel-sql, so I logged a ticket and fixed this https://issues.apache.org/jira/browse/CAMEL-8329 On Mon, Feb 9, 2015 at 5:40 PM, fabrizio.spataro wrote: > Hello everyone, > > I am using Camel (2.14.1) SQL component, with > *CamelSqlRetrieveGeneratedKeys=true*. > > After an insert operation i have a correct CamelSqlGeneratedKeyRows value > but *I am lost all my previous header params.* > > Is it a bug? > > There is any param to preserve my headers? > > Tnkx > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-SQL-CamelSqlRetrieveGeneratedKeys-attribute-delete-all-headers-tp5762512.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
Re: [Camel SQL] CamelSqlRetrieveGeneratedKeys attribute delete all headers
Hello, i am using batch value. This seems to work but i lost transactional functionality. So.. i am creating the issue into JIRA My settings are: false false false -- View this message in context: http://camel.465427.n5.nabble.com/Camel-SQL-CamelSqlRetrieveGeneratedKeys-attribute-delete-all-headers-tp5762512p5762532.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: [Camel SQL] CamelSqlRetrieveGeneratedKeys attribute delete all headers
Thanks to resolve the issue: https://issues.apache.org/jira/browse/CAMEL-8329 I am testing now! -- View this message in context: http://camel.465427.n5.nabble.com/Camel-SQL-CamelSqlRetrieveGeneratedKeys-attribute-delete-all-headers-tp5762512p5762544.html Sent from the Camel - Users mailing list archive at Nabble.com.