camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: how to include a processor in a route with InOut MEP
Date Wed, 26 Sep 2012 06:15:05 GMT
Put the processor after the bean call in your route.

Best,
Christian

On Wed, Sep 26, 2012 at 7:33 AM, Sura Monday <sura.monday@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
>



--

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message