camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sura Monday <>
Subject Re: how to decide the exchagne pattern of the route
Date Thu, 13 Sep 2012 07:11:13 GMT
Hi Claus,
Thanks. So if I want my jason component to receive responses from jms, do I always have to
set the jms consumer MEP to inout as well? why do we have to explicitly set consumer MEP,
if the route already says i is inout? Isnt there any method to get the MEP that is set on
the route?

Also, how can I retrieve the response message at my jason consumer?


 From: Claus Ibsen <>
Sent: Thursday, September 13, 2012 6:54 PM
Subject: Re: how to decide the exchagne pattern of the route
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:
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message