Is it possible to share your code with us? This makes much more easier to help you. And our processor should look like this one:
public class MyProcessor implements Processor { @Override public void process(Exchange exchange) throws Exception { Foo foo = exchange.getIn().getBody(Foo.class); Bar bar = new Bar(); // transform foof to bar exchange.getIn().setBody(bar); } } Best, Christian On Wed, Nov 23, 2011 at 11:54 PM, Romain Manni-Bucau <rmannibu...@gmail.com>wrote: > can you provide the qualified name of classes please? (or a unit test to > reproduce the error) > > - Romain > > > 2011/11/23 Idriss <doulmakhzo...@gmail.com> > > > What I do in my processor is : > > > > I get the message using this: > > Message message = exchange.getIn(); > > PccCommoncard pcc = message.getBody(PccCommoncard.class); > > > > Then I instanciate OcPccCommoncard : > > OcPccCommoncard opcc = new OcPccCommoncard(); > > > > Then I fill the fields of this instance (opcc). > > > > > > -- > > View this message in context: > > http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5018527.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > >