Put the processor after the bean call in your route. Best, Christian
On Wed, Sep 26, 2012 at 7:33 AM, Sura Monday <sura.mon...@yahoo.com> wrote: > Hi All, > I have a component that implements the InOut MEP. I want to include a > processor in the router in such a way that the processor modifies ONLY the > response (coming from the bean) as shown below. Can somebody please tell me > how this can be achieved? > > from("jason:action?exchangePattern=InOut") > > .process(new Processor() { > public void process(Exchange exchange) throws > Exception { > process ONLY the response message > }}) > .bean(ValidatorBean.class); > /Sura > --