On 21/11/2007, Hamlet84 <[EMAIL PROTECTED]> wrote:
>
> Hi. A little (maybe big) question =^D
> An http endpoint (with servicemix) receive SOAP Message. The message is very
> generic, that is the messages can not be converter in a specific object (ex.
> Person or Beer :drunk:). This message is send to a camel component. Now i
> want that this component store the whole SOAP message as a string in a db.
>
> Here a first
>
> this.from("jbi:service:http://example.it/Test/CamelProva";)
>             .process(new ProcessorEnricher())
>             .convertBodyTo(String.class)
>             .to("jpa:");
>
> But the convertBody thake only the body, but i want to store the wole
> message (also the soap headers) and in the jpa: i don't know what insert as
> entityClassName. Can we help me??? thanks!

Just write an Entity Bean (a POJO with JPA annotations) containing
whatever data you want to store. e.g. a single String for the XML
would do. Maybe you wanna extract some of the headers as actual
properties of the entity bean.

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Reply via email to