Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4B7147058 for ; Mon, 5 Dec 2011 21:36:30 +0000 (UTC) Received: (qmail 98435 invoked by uid 500); 5 Dec 2011 21:36:30 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 98396 invoked by uid 500); 5 Dec 2011 21:36:30 -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 98388 invoked by uid 99); 5 Dec 2011 21:36:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 21:36:30 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of richardkettelerij@gmail.com designates 209.85.214.45 as permitted sender) Received: from [209.85.214.45] (HELO mail-bw0-f45.google.com) (209.85.214.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 21:36:24 +0000 Received: by bkaq10 with SMTP id q10so4670156bka.32 for ; Mon, 05 Dec 2011 13:36:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=qjjvUSA1+l9DjnwGWhCaIfzY8q/zQxXmg5fVY8vj0ik=; b=WFh8xDnzG0yJcr1ztTu9c+SUp8FrrLckLvh9uZvPi17f80zWT6I0eDzUJtZYsRCzAS wqb1bn5rcdVHfjUMLPbsp8wVRPiShA+y53I0DlcYyhGBTOEHkWiN5qZMmIOsrsWNZXSw A+D1Y1aJA2kSxOeV4grxgKz3nql8DLb4kn0Zc= Received: by 10.216.14.145 with SMTP id d17mr688227wed.5.1323120963554; Mon, 05 Dec 2011 13:36:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.123.72 with HTTP; Mon, 5 Dec 2011 13:35:42 -0800 (PST) In-Reply-To: <4EDCC1FA.1070206@die-schneider.net> References: <4EDCC1FA.1070206@die-schneider.net> From: Richard Kettelerij Date: Mon, 5 Dec 2011 22:35:42 +0100 Message-ID: Subject: Re: [Discussion] Unify prefixes http, jetty, servlet? To: dev@camel.apache.org Content-Type: multipart/alternative; boundary=001485f6c5ec070f8704b35f1b7b X-Virus-Checked: Checked by ClamAV on apache.org --001485f6c5ec070f8704b35f1b7b Content-Type: text/plain; charset=ISO-8859-1 Hi Christian, I welcome every suggestion to simplify Camel but I'm not sure what benefit this proposal will bring (considering the costs of maintaining backwards compatibility). More importantly I think you run the risk of introducing a "leaky abstraction"(http://en.wikipedia.org/wiki/Leaky_abstraction). This proposal hides the servlet and jetty concepts from the end user. Is that what we really what? The user should still be aware he is using servlet/jetty underneath since camel-servlet/camel-jetty need be available on the classpath to get it all working. Also one should understand the implications of servlet (i.e. the need to run Camel in a container) or jetty to some extend when building integration solutions. Regards, Richard On Mon, Dec 5, 2011 at 2:07 PM, Christian Schneider wrote: > Some time ago I did some unification in CXF to make it easier for users to > configure the different http transports. I would like to do a similar > thing for camel. > > Currently we have three different http components: > > camel-http : Only producer > camel-jetty : Only consumer with embedded jetty > camel-servlet : Only consumer with servlet from servlet container or OSGi > Server > > This means people have to use three different prefixes. > > I would like to change this to only use the prefix http. > > Producer: > to("http://myserver/mypath") > > Servlet consumer: > from("/myservlet/mypath") > > Jetty consumer: > from("http://myserver:myport/**mypath") > > The idea is to select the Endpoint type based on the URI and endpoint type > but to hide this from the user. > > Christian > > -- > Christian Schneider > http://www.liquid-reality.de > > Open Source Architect > Talend Application Integration Division http://www.talend.com > > --001485f6c5ec070f8704b35f1b7b--