camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sura Monday <sura.mon...@yahoo.com>
Subject Re: how to include a processor in a route with InOut MEP
Date Wed, 26 Sep 2012 07:11:49 GMT
Hi Christian,

It worked!!
Many thanks for the quick response:)

/Sura




________________________________
 From: Christian Müller <christian.mueller@gmail.com>
To: users@camel.apache.org; Sura Monday <sura.monday@yahoo.com> 
Sent: Wednesday, September 26, 2012 6:15 PM
Subject: Re: how to include a processor in a route with InOut MEP
 
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