Hello! Why don“t use a Processor? http://camel.apache.org/processor.html
Use a processor to get the headers from servlet component and set in your entity bean. I believe is the simplest way to solve this problem. Alan On Mon, Sep 26, 2011 at 11:23 AM, dunnlow <dunn...@yahoo.com> wrote: > Hi, > I am using Spring and have a servlet component that is receiving the url > parameters and placing them into header values. I have a JPA entity bean > and I would like to take those passed in parameters (in the header values > from the servlet component) load them into my entity bean and persist it > into a database. > > The problem I have is that the JPA component expects the bean to be in the > message body. So, I'm looking for the best way to load the values in the > header into the bean and place that bean in the body for the JPA component. > > I thought about adding a method in my entity bean to use the Exchange to > load the header values (which are the same as the bean properties) and load > itself into the body, but there must be a beter way? What is the "right" > way to do this? > > Thanks for you insight, > -J > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Transform-header-values-into-jpa-bean-body-tp4841535p4841535.html > Sent from the Camel - Users mailing list archive at Nabble.com. >