Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-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 26C121034B for ; Mon, 10 Feb 2014 07:26:53 +0000 (UTC) Received: (qmail 24820 invoked by uid 500); 10 Feb 2014 07:26:52 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 24652 invoked by uid 500); 10 Feb 2014 07:26:37 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 24380 invoked by uid 99); 10 Feb 2014 07:26:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Feb 2014 07:26:34 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: unknown (athena.apache.org: error in processing during lookup of fmeschbe@adobe.com) Received: from [207.46.163.204] (HELO na01-bl2-obe.outbound.protection.outlook.com) (207.46.163.204) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Feb 2014 07:26:29 +0000 Received: from DM2PR02MB446.namprd02.prod.outlook.com (10.141.88.16) by DM2PR02MB446.namprd02.prod.outlook.com (10.141.88.16) with Microsoft SMTP Server (TLS) id 15.0.873.15; Mon, 10 Feb 2014 07:25:49 +0000 Received: from DM2PR02MB446.namprd02.prod.outlook.com ([10.141.88.16]) by DM2PR02MB446.namprd02.prod.outlook.com ([10.141.88.16]) with mapi id 15.00.0873.009; Mon, 10 Feb 2014 07:25:49 +0000 From: Felix Meschberger To: "oak-dev@jackrabbit.apache.org" Subject: Re: Make "Whiteboard" accessible through ContentRepository Thread-Topic: Make "Whiteboard" accessible through ContentRepository Thread-Index: AQHPJKGg7j3iezxhR0uLEInrs4QTu5qrev8AgAA7J4CAAOykgIABdpSA Date: Mon, 10 Feb 2014 07:25:48 +0000 Message-ID: <0F640856-7B0A-4881-8335-8E7119AEA37D@adobe.com> References: In-Reply-To: Accept-Language: de-CH, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.147.117.11] x-forefront-prvs: 0118CD8765 x-forefront-antispam-report: SFV:NSPM;SFS:(10019001)(6009001)(189002)(199002)(51704005)(377454003)(24454002)(243025003)(74876001)(76482001)(81542001)(81342001)(54356001)(36756003)(46102001)(53806001)(15202345003)(74706001)(33656001)(83072002)(87936001)(2656002)(69226001)(92726001)(92566001)(81686001)(81816001)(82746002)(15975445006)(76796001)(93136001)(86362001)(76786001)(90146001)(56816005)(85852003)(93516002)(94316002)(54316002)(94946001)(95416001)(56776001)(59766001)(77982001)(65816001)(66066001)(79102001)(51856001)(63696002)(47446002)(74662001)(31966008)(74502001)(74366001)(80022001)(83716003)(87266001)(4396001)(49866001)(47736001)(47976001)(50986001)(83322001)(19580395003)(19580405001)(80976001)(85306002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR02MB446;H:DM2PR02MB446.namprd02.prod.outlook.com;CLIP:192.147.117.11;FPR:7E38F535.AFF21700.91D79FE4.4658FDF1.202D6;InfoNoRecordsMX:1;A:1;LANG:en; Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: adobe.com X-Virus-Checked: Checked by ClamAV on apache.org Hi This thread indeed raises the question, why Oak has to come up with somethi= ng (the Whiteboard) that is almost but not quite like OSGi instead of going= all the way through ? As a stop-gap measure, instead of going full-OSGi you could also just lever= age the feature, that you really need: The service registry and base on som= ething like Karl Pauls' =B5Services [2] and PojoSR [3] Interestingly, when I started with what became Apache Sling I worked on a t= hing called the "Extension Frameworkg for JCR Repositories" [1] until it tu= rned out that it basically would be reinventing OSGi =85 and so Sling becam= e an OSGi application. Regards Felix [1] http://svn.apache.org/repos/asf/jackrabbit/sandbox/inactive/extension-f= ramework/ [2] http://www.pro-vision.de/content/medialib/pro-vision/production/adaptto= /2013/adaptto2013-osgi--services-karl-pauls-pdf/_jcr_content/renditions/ren= dition.download_attachment.file/adaptto2013-osgi--services-karl-pauls.pdf [3] http://code.google.com/p/pojosr/ Am 09.02.2014 um 10:05 schrieb Davide Giannella : > On Sat, Feb 8, 2014 at 6:58 PM, Tobias Bocanegra wrot= e: >> ... >> ps: I still think we should turn the problem around, and make >> everything OSGi services and start a small OSGi container for the >> runtime :-) >=20 > I was thinking the same tonight. I was going to ask why (any > historical decisions) Oak in the oak-run doesn't use a simple > bundled-up OSGi container and runs the related jar, that are already > OSGi bundles, in it. >=20 > It would make for example a lot easier to inject a CommitHook like a > custom index. So far the only way to achieve so is to recompile the > oak-run adding .with(new MyIndexProvider()) while I'd rather add a > Service implementation the OSGi whiteboard. >=20 > D.