camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Camillo <>
Subject Re: Transform header values into jpa bean body?
Date Mon, 26 Sep 2011 15:01:55 GMT
Why donĀ“t use a Processor?

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.


On Mon, Sep 26, 2011 at 11:23 AM, dunnlow <> 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:
> Sent from the Camel - Users mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message