You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Sura Monday <su...@yahoo.com> on 2012/09/26 07:33:00 UTC
how to include a processor in a route with InOut MEP
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
Re: how to include a processor in a route with InOut MEP
Posted by Sura Monday <su...@yahoo.com>.
Hi Christian,
It worked!!
Many thanks for the quick response:)
/Sura
________________________________
From: Christian Müller <ch...@gmail.com>
To: users@camel.apache.org; Sura Monday <su...@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 <su...@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
>
--
Re: how to include a processor in a route with InOut MEP
Posted by Christian Müller <ch...@gmail.com>.
Put the processor after the bean call in your route.
Best,
Christian
On Wed, Sep 26, 2012 at 7:33 AM, Sura Monday <su...@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
>
--