Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC4629B71 for ; Thu, 13 Sep 2012 07:54:52 +0000 (UTC) Received: (qmail 41559 invoked by uid 500); 13 Sep 2012 07:52:19 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 40341 invoked by uid 500); 13 Sep 2012 07:52:05 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 37564 invoked by uid 99); 13 Sep 2012 07:50:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 07:50:12 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 07:50:08 +0000 Received: by lbbgm13 with SMTP id gm13so2122419lbb.32 for ; Thu, 13 Sep 2012 00:49:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=5Fvlvg2bZwZAyDJY3dN36FdapZWcMaFeHAewHwIigyU=; b=B6MERwD9ClyfCp14rr4YHurB/bVnHeAC8vH3QmUNk/RBKC47zxVJNsFAibWJYWlt/Y nboK64oZ3Fmeu/Z9rkDlp7VTIiEuQr7/vjfAB4KOWwT2t46T4hmEaWGtqSWet11/t++5 B/CwjoJ0pgRJ0+YqVsEqIfC3/ipeE+Ui1lefCGzK2SJZ04HcA9y07cRGOsBpk7DwJOOI t7rjNyzv1++0isjtYXhxdgZx1y9aOVIyYdX1eApsY/rhhha/uJm1TGM2dzJ+I0JnmfdD 3foiIoGtizkGP3vy2n0v0K65TTCA0GfOdUd3x3or8jevz/2zKWbwdMNxPyvliV1YqNDt Zb6g== Received: by 10.152.103.146 with SMTP id fw18mr1029806lab.30.1347522586333; Thu, 13 Sep 2012 00:49:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.7.230 with HTTP; Thu, 13 Sep 2012 00:49:25 -0700 (PDT) In-Reply-To: <1347520273.74635.YahooMailNeo@web125205.mail.ne1.yahoo.com> References: <1347518197.92475.YahooMailNeo@web125202.mail.ne1.yahoo.com> <1347520273.74635.YahooMailNeo@web125205.mail.ne1.yahoo.com> From: Claus Ibsen Date: Thu, 13 Sep 2012 09:49:25 +0200 Message-ID: Subject: Re: how to decide the exchagne pattern of the route To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Sep 13, 2012 at 9:11 AM, Sura Monday 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 > 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 wrot= e: >> 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(), i= t returns inOnly. >> >> >> Why doesn't getExchangePattern() return inOut, as it should do? Or is th= ere 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 --=20 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