Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 45740 invoked from network); 18 Feb 2009 02:08:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2009 02:08:24 -0000 Received: (qmail 1979 invoked by uid 500); 18 Feb 2009 02:08:23 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 1959 invoked by uid 500); 18 Feb 2009 02:08:23 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 1948 invoked by uid 99); 18 Feb 2009 02:08:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 18:08:23 -0800 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 willem.jiang@gmail.com designates 209.85.142.190 as permitted sender) Received: from [209.85.142.190] (HELO ti-out-0910.google.com) (209.85.142.190) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 02:08:15 +0000 Received: by ti-out-0910.google.com with SMTP id j3so1816361tid.10 for ; Tue, 17 Feb 2009 18:07:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=oO0p0Tz1pb1KTlMIGqZcWARjPTimIApiJ9s/Pax3+i8=; b=KiFbOiqYyNB6oKfalhXkd005a4ELiuntRDgdvfJvx/6w+sDdXqVPqHYDd4Ja67EUwu q+h0WpwJT4iuwDUXA+5Sy8Rl5ppTq1mrcB7DX7pxe1w7rfQHmaJKXOAtqFi9YX48T7BZ Ksk/6kPD3i5BkaNaupaH+u8KQLV4kDDcjrZy4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=kl8gk6BHy5FI1PLOp9rXMB8rJRJpfQG5NlqtTQ5tfrAaKYd9RblLN6d6SThLiKlRY1 JQuHjWJHUxkZaU5HJ6HthVBsXcderQ5iLtGUBq+EQHcBRF4XwXYBySJ/QzWCLoMeampN G69f1lFO7G9mQLQgSmwkLXgceJfOYKgN+it6E= Received: by 10.110.68.10 with SMTP id q10mr8883570tia.32.1234922873666; Tue, 17 Feb 2009 18:07:53 -0800 (PST) Received: from ?192.168.0.131? ([221.223.252.87]) by mx.google.com with ESMTPS id 2sm2236298tif.6.2009.02.17.18.07.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Feb 2009 18:07:52 -0800 (PST) Message-ID: <499B6D6E.1050609@gmail.com> Date: Wed, 18 Feb 2009 10:07:42 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: dev@camel.apache.org Subject: Re: Camel 2.0 - Keys for header problem References: <5380c69c0902162358m7aa54016v3fbb89a33e968896@mail.gmail.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I think the component developers should aware these header if they want to use them in their component. I have a quick question about this change of camel-cxf component. As you know cxf message using the dots name as the header key, like the Message.RESPONSE_CODE, Message.PROTOCOL_HEADERS etc. These headers are used wildly in camel-cxf component and application user may use them direly in their processor if they familiar with CXF. If we want to support the CamelCase style header key in camel-cxf component.Do we need to extract mapping layer between the camel-cxf message and cxf message? I don't know if we can get enough benefits to overcome the inconvenience of CamelCase style header. For the JMS , we map the header key with dot separator to slash separator back and forth in the JMS transport binding layer. And we can isolate this kind of special in JMS. Just my 2 cents. Willem William Tam wrote: > I agreed with the convention. Just one question, are we going to have > component neutral headers that can be understood by more than one > component? If we are, what's the convention and where should they go > in the source? The obvious reason is the "interoperability" between > components. For example, if I am writing a component that needs to > understand http headers. my component will then have to check for > CamelHttpResponseCode and CamelRestletResponseCode to be able to work > with Http and Restlet components. > > On Tue, Feb 17, 2009 at 2:58 AM, Claus Ibsen wrote: >> Hi >> >> We have a bullet on the Camel 2.0 design page: >> http://camel.apache.org/camel-20-design.html >> >> Bullet: >> using Camel${component}${name} pattern as header keys instead of using >> package names with dots that isn't likely to be transported by JMS or >> other transport types >> >> Currently we have mixed content using the old style (using package >> names) and the new style. >> What I would like to get done before we have a M1 version is to get >> this fixed beforehand. >> >> As the change involves looking into all components and fixing it one >> by one it would take some time. >> >> If you are in doubt why we should do it, then i will quote what >> Jonathan wrote on IRC >> >> "this is CamelCase style" >> >> Well spotted Jon, of course we should have CamelCase in Camel :) >> >> >> Any thoughts? >> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> >