I am trying to get the primary key which is autogenerated after inserting data into the database using Camel. I saw, there was a JIRA issue(https://issues.apache.org/jira/browse/CAMEL-7313) and it was resolved.
from("file:data/source?noop=true")
.to("validator:books.xsd")
.split()
.tokenizeXML("book")
.unmarshal(jaxb)
.to("jpa:com.labs.Book")
.process(new Processor() {
public void process(Exchange exchange)
throws Exception {
//here i want to get that primary key
}
});
Can someone point me to an example for this ....