camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dunnlow <>
Subject Transform header values into jpa bean body?
Date Mon, 26 Sep 2011 14:23:36 GMT
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,

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message