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