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.