Available as of Camel 2.12.4, 2.13.1 and 2.14
If you insert data using SQL INSERT, then the RDBMS may support auto generated keys. You can instruct the SQL producer to return the generated keys in headers.
To do that set the header
CamelSqlRetrieveGeneratedKeys=true. Then the
generated keys will be provided as headers with the keys listed in the table above.
You can see more details in this unit test.