What's your MarshalProcessor looks like ?
Did you call the marshal method in the DataFormat?


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Wednesday, February 20, 2013 at 8:03 AM, khong07 wrote:

> Hi,
> i have a route
> from("start").routeId("start").
> marshal().json(JsonLibrary.Jackson)
> .to("seda:next");
>  
> producerTemplate.send(foo);
>  
> It's worked.
>  
> But i want send foo directly to seda:next, how i can do with
> MarshalProcessor?
> I tried:
> marshalProcessor = new
> MarshalProcessor(camelContext.resolveDataFormat("json-jackson"));
> ...
> producerTemplate.asyncCallback("seda:next",
> new Processor() {
>  
> @Override
> public void process(Exchange exchange) throws Exception {
> exchange.getIn().setBody(foo);
> marshalProcessor.process(exchange);
> }
> });
>  
> but it doesn't work?
>  
> Any idea?
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/marshal-with-MarshalProcessor-tp5727842.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to