On Thu, Sep 13, 2012 at 9:11 AM, Sura Monday <sura.mon...@yahoo.com> wrote: > 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? >
The Camel JMS component supports both InOnly and InOut. So you have to set the MEP accordingly what you want. See the EIPs http://camel.apache.org/event-message.html http://camel.apache.org/request-reply.html > Also, how can I retrieve the response message at my jason consumer? > This is component specific. There is no jason component out of the box at Apache Camel. So its likely a custom component. So get in touch with the component author to figure that out. > /Sura > > > > ________________________________ > From: Claus Ibsen <claus.ib...@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.mon...@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: cib...@fusesource.com > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen