Fabrizio

I've fixed your example. dont' use "CamelSqlGeneratedKeyRows", use
"CamelGeneratedKeyRows" because you're using JdbcComponent, not
SqlComponent.
Plus - this test aserts availability of headers in "out" - right, but those
are copied to "in" of next (e.g. setBody) processor.

regards
Grzegorz

2015-01-09 9:40 GMT+01:00 fabrizio.spataro <fabrizio.spat...@bizmate.it>:

> Of course! I never want to use out message but reading example code (posted
> by Grzegorz Grzybek) i suppose that *CamelSqlGeneratedKeyRows * variable
> set
> into it.
>
> code:
> ....
> // assertions of the response
> assertNotNull(out);
> assertNotNull(out.getOut());
>
> assertNotNull(out.getOut().getHeader(SqlConstants.SQL_GENERATED_KEYS_DATA));
> ....
> (source:
>
> https://github.com/apache/camel/blob/camel-2.14.1/components/camel-sql/src/test/java/org/apache/camel/component/sql/SqlGeneratedKeysTest.java#L70-L97
> )
>
> This variable is not present even into "in message" headers.
>
> My attach code test what I'm saying. Can you run it?
>
> Thnkx everyone!
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/SQL-COMPONENT-CamelSqlGeneratedKeyRows-has-a-bug-tp5761113p5761506.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to