camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: how to decide the exchagne pattern of the route
Date Thu, 13 Sep 2012 06:54:04 GMT
On Thu, Sep 13, 2012 at 8:36 AM, Sura Monday <> wrote:
> Hi All,
> I have an exchange pattern like the one shown below:
> from("jason:action").inOut("jms:validate);
> from("jms:validate").bean(ValidatorBean.class);
> At my jason end point, if I print out [endpoint].getExchangePattern(), it returns inOnly.
> Why doesn't getExchangePattern() return inOut, as it should do? Or is there another method
that returns inOut?

Its the jason component, in its consumer that decides the initial MEP.
By default its InOnly and hence why it may report that.
The component writer must handle this to set the correct MEP.

> /Sura

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message