Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 89204 invoked from network); 4 Nov 2010 12:33:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 12:33:42 -0000 Received: (qmail 76915 invoked by uid 500); 4 Nov 2010 12:34:13 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 76750 invoked by uid 500); 4 Nov 2010 12:34:10 -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 76742 invoked by uid 99); 4 Nov 2010 12:34:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 12:34:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bdusausoy@yp5.be designates 91.121.85.197 as permitted sender) Received: from [91.121.85.197] (HELO jumper.yp5.be) (91.121.85.197) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 12:34:04 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by jumper.yp5.be (Postfix) with ESMTP id 2B900233A6 for ; Thu, 4 Nov 2010 13:33:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at jumper.yp5.be Received: from jumper.yp5.be ([127.0.0.1]) by localhost (asgard.yp5.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TD3snvcFj3OX for ; Thu, 4 Nov 2010 13:33:42 +0100 (CET) Received: by jumper.yp5.be (Postfix, from userid 5000) id C19712337C; Thu, 4 Nov 2010 13:33:42 +0100 (CET) Received: from www.yp5.be (ns352753.ovh.net [91.121.85.197]) by jumper.yp5.be (Postfix) with ESMTP id B65DB232E2 for ; Thu, 4 Nov 2010 13:33:42 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: Thu, 04 Nov 2010 13:33:42 +0100 From: Bruno Dusausoy To: Subject: Re: Request reply In-Reply-To: References: Message-ID: <80f758452b5b524f704ce00efd04732c@localhost> X-Sender: bdusausoy@yp5.be User-Agent: RoundCube Webmail/0.4 X-Copyrighted-Material: Please visit http://www.yp5.be On Thu, 04 Nov 2010 11:23:46 +0100, Bruno Dusausoy wrote: > Hi, > [...] > > So my question is : "is there a difference between setting the > exchangePattern option and using the inOut() method ?" > [...] Ok, I think I've tightened the scope of the problem. This code doesn't work (as explained before) : from("file:src/data?noop=true").to("jms:incomingOrders"); from("jms:incomingOrders") .inOut("jms:xmlOrders"); // ValidatorBean.validate() always return the boolean value "true". from("jms:xmlOrders") .bean(ValidatorBean.class, "validate") .to("jms:valid"); from("jms:valid").to("stream:out"); If I use exactly the same, only replacing from("jms:incomingOrders") .inOut("jms:xmlOrders"); with from("jms:incomingOrders") .to("jms:xmlOrders?exchangePattern=InOut"); It works as expected, resulting in displaying "true" to the console. *But* When removing the last route and the .to("jms:valid"), like this : from("file:src/data?noop=true").to("jms:incomingOrders"); from("jms:incomingOrders") .inOut("jms:xmlOrders"); from("jms:xmlOrders") .bean(ValidatorBean.class, "validate"); it always work, either by using inOut() or the to() with "exchangePattern=InOut" option. Can someone tell me why is it this way ? Regards. -- Bruno Dusausoy YP5 Software -- Pensez environnement : limitez l'impression de ce mail. Please don't print this e-mail unless you really need to.