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 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?

/Sura



________________________________
 From: Claus Ibsen <claus.ibsen@gmail.com>
To: users@camel.apache.org 
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 <sura.monday@yahoo.com> 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
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message