Return-Path: X-Original-To: apmail-karaf-dev-archive@minotaur.apache.org Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 016359232 for ; Sun, 3 Jun 2012 15:28:26 +0000 (UTC) Received: (qmail 27068 invoked by uid 500); 3 Jun 2012 15:28:25 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 27021 invoked by uid 500); 3 Jun 2012 15:28:25 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 27013 invoked by uid 99); 3 Jun 2012 15:28:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jun 2012 15:28:25 +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 dantran@gmail.com designates 209.85.160.48 as permitted sender) Received: from [209.85.160.48] (HELO mail-pb0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jun 2012 15:28:21 +0000 Received: by pbbrq8 with SMTP id rq8so5825714pbb.21 for ; Sun, 03 Jun 2012 08:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ZHKIRME6uTUVV8ctwA0STRJhI+VsjHH7lciAObxDWck=; b=ux/hk1aku2mVl5d2zvgm2Gc+crRnvmV5+afch+E46r719ElbsR2QWn1zmWs7jJD8OU /p9b6n597k5fFLpBMLERJcFhsMq+Ogm4GVqMPiSALQkNQgEvsE9tvjkM1emWE74dW8hJ EKdnL1SjloMiW5rJYqhkpglUV3B/DXeo54IR/um4tMbYkkaZ/rgonrPlXkIhRycOK8qY By1L3Cd8l1FxLYt0Uw1GfNR3NwwPk6uHkX5pgb75PikWo8nIw7oEn9U0fNrBVoXrvbc4 MIPxuMPY8GGxT88Z2w/y+Ys9npfuTrymgfTiZu5aXEVSag/dMGFyZHFfF8XZWXPFQxHr aqqQ== MIME-Version: 1.0 Received: by 10.68.232.161 with SMTP id tp1mr30444377pbc.44.1338737280612; Sun, 03 Jun 2012 08:28:00 -0700 (PDT) Received: by 10.68.73.42 with HTTP; Sun, 3 Jun 2012 08:28:00 -0700 (PDT) In-Reply-To: <4FCB5643.7040304@die-schneider.net> References: <4FA40BDC.1070802@die-schneider.net> <4FA8C4C9.9080009@die-schneider.net> <84975505-F809-4F8F-B7D8-968CECE72FB7@yahoo.com> <4FA94949.8070001@die-schneider.net> <4FBD05CF.1090500@gmail.com> <4FBF9A2D.3000107@die-schneider.net> <4FBFA583.9040502@die-schneider.net> <4FBFAB56.8060201@die-schneider.net> <4FC9DA14.7080900@die-schneider.net> <13527A19-779D-4E09-85DC-3171D94B2C83@yahoo.com> <4FCB5643.7040304@die-schneider.net> Date: Sun, 3 Jun 2012 08:28:00 -0700 Message-ID: Subject: Re: [Discuss] Handling of initial bundles From: Dan Tran To: dev@karaf.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Jun 3, 2012 at 5:19 AM, Christian Schneider wrote: > One nice =C2=A0thing about the feature files we currently use is that the= y are > globally adressable using a maven coordinate. So by support reading featu= res > we could create a very small distro that can read all it needs from maven > repos. If maven access is not allowed/possible in an environment we can > nicely use our system dir to make karaf fully self contained. > > So feature reading would allow us to have a fixed small binary distro tha= t > can easily be customized by users. They can already change the feature se= t > they want and with startup feature loading they could also customize the > startup feature without build their own distro. We could extend that to s= ome > commands that allow reading features into the system dir. So the user cou= ld > download a small karaf binary, execute some commands at a place with mave= n > repo access and as a result get a customized distro he can then use in a > closed company environment. This would be much simpler then building your > own distro with maven like you have to do it now. >From the perspective of karaf's feature, this is a big plus for us since we deliver karaf to our client in a isolated environment. > > Honestly the above thing would also work nicely without loading startup > bundles from a feature file. I doubt anyway that people really need to > change the framework bundles. > > Supporting the subsystem spec sounds great to me. So that may be a good > reason to delay supporting feature reading and then only support it for t= he > subsystem spec features. Any way the startup feature loading from xml is = not > that big of an issue for me. I thought it is a nice feature but it is not > really crucial. > > Now to the last part about maven support in karaf. I think at the moment > maven support is a key feature in karaf that makes it much easier to use > than other frameworks. It allows to install big frameworks like camel and > cxf with just some simple commands. Whenever I show this to people who do > not know karaf they are really impressed by it. So while I am sure that > maven is not ideal for OSGi bundles it is the best we currently have. > > I fully support replacing maven with something better like obr but only w= hen > it is ready. So the key to that would be that all relevant bundles are > available in OBRs. We then also would need a url for adressing bundles fr= om > OBRs (not sure if we have such a thing already). So replacing maven sound= s > like a good goal for the future but not near term. Perhaps in the end mav= en > and OBR grow together anyway and the big maven repos simply additionally > support OBR. So you would address the entry points into the OBR as maven > coordinates and resolve dependencies using the OBR features. > > Christian > > P.S. Thanks for your nice words about my contributions to karaf. I really > like Karaf and see a great future for it. So I guess I just have to learn= to > step on less toes on the way :-) > > Am 02.06.2012 19:26, schrieb David Jencks: > >> Hi Christian, >> >> I'm not a big fan of xml when dealing with not-very-complicated data. = =C2=A0The >> data in startup.properties is just about the right complexity for a >> properties file. =C2=A0A feature repo is too much: it can contain more t= han one >> feature, and the name of the startup feature has to be hard coded. >> >> Furthermore, now that the subsystem spec is fairly final I think we shou= ld >> look towards using spec features as much as possible and start thinking = of >> karaf features as possibly obsolete. =C2=A0Pushing the karaf feature xml= format >> into the framework startup is exactly opposite of this goal. >> >> I looked back and reviewed your patch. =C2=A0Mostly I'm impressed with h= ow much >> you've contributed in the last few months :-) =C2=A0I wish I had as much= time to >> spend on karaf.... =C2=A0Your patch is indeed pretty simple and small bu= t my >> objections are really to the idea of using xml during startup rather tha= n >> the implementation. =C2=A0I might have missed it but didn't think you ad= dressed >> the question of why xml was better than a properties file. >> >> My views might not be shared by many others, for instance I really think >> we should try hard to make karaf runtime independent of maven including = the >> mvn url handler, and I'm not sure anyone else agrees with me. >> >> thanks >> david jencks >> >> >> On Jun 2, 2012, at 2:17 AM, Christian Schneider wrote: >> > > -- > > Christian Schneider > http://www.liquid-reality.de > > Open Source Architect > Talend Application Integration Division http://www.talend.com >