Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 32235 invoked from network); 10 Jul 2008 08:39:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2008 08:39:42 -0000 Received: (qmail 2026 invoked by uid 500); 10 Jul 2008 08:39:42 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 2002 invoked by uid 500); 10 Jul 2008 08:39:42 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 1991 invoked by uid 99); 10 Jul 2008 08:39:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 01:39:42 -0700 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 gert.vanthienen@skynet.be designates 195.238.6.175 as permitted sender) Received: from [195.238.6.175] (HELO mailrelay002.isp.belgacom.be) (195.238.6.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 08:38:51 +0000 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwAAOBldUhQyF+//2dsb2JhbAAIsG0 Received: from 191.95-200-80.adsl-dyn.isp.belgacom.be (HELO [192.168.0.102]) ([80.200.95.191]) by relay.skynet.be with ESMTP; 10 Jul 2008 10:39:12 +0200 Message-ID: <4875CAB0.2030802@skynet.be> Date: Thu, 10 Jul 2008 10:39:12 +0200 From: Gert Vanthienen User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: camel-dev@activemq.apache.org Subject: ExchangePattern handling in Camel Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org L.S., If you look at the comments on CAMEL-688 and some of the others mails on the commits, it looks like it is time we make up our minds what we want to do with ExchangePattern handling inside Camel. Up to now, the ExchangePattern was there mostly for informational purposes -- e.g. to transfer this information inside Camel when interacting with JBI or CXF exchanges. If it is just there for informational purposes however, we should try to avoid implementing other behavior based on the MEP. For example: for CAMEL-688, we should follow on Claus' suggestion to just use getOut(true) to force the 'out' message to be created. On the other hand, if we really want to honor the ExchangePattern inside Camel, the current patch is OK, but we probably also need a lot of other changes. Just an example: the PipeLine currently sends the incoming exchange to the first target, even if this is an in-only exchange. If we want to go for strict MEP handling, we should probably change that behavior so it always interacts with it targets in an in-out manner, allowing them to send set the 'out' message content. As I said: I think it's time we make up our minds here, because the current situation is just a bit messy. Personally, I would prefer to keep Camel as lightweight and simple as possible, just keeping the current behavior, where the MEP isn't influencing the behavior. Regards, Gert