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 20038D0AD for ; Sat, 20 Oct 2012 07:56:04 +0000 (UTC) Received: (qmail 79304 invoked by uid 500); 20 Oct 2012 07:56:03 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 79179 invoked by uid 500); 20 Oct 2012 07:56:01 -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 79140 invoked by uid 99); 20 Oct 2012 07:56:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Oct 2012 07:56:00 +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 (nike.apache.org: domain of chetan.mehrotra@gmail.com designates 209.85.223.170 as permitted sender) Received: from [209.85.223.170] (HELO mail-ie0-f170.google.com) (209.85.223.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Oct 2012 07:55:52 +0000 Received: by mail-ie0-f170.google.com with SMTP id c12so3645447ieb.1 for ; Sat, 20 Oct 2012 00:55:31 -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; bh=s3e49FUwJ/xmT465f/UGlDmsn3Kq7Ih9woeXRXduLxo=; b=qgDStNKGKPQTfwloyl11fFRwLafAyv7GRolbeW8/hpxY+cNSNKnKlH5n8XAgSt+j28 3Of9FW+NvenXryWBG/SRt+VATYNr7W8/Cp7wz1J+kspOK/tvjq6BBkfE1NjIe5hBDNgi DB5daV4Y1qEI8iYGfpV/DxZsWjb/w3a/vduHDkVMNVbbeI853WVMVujMOK5l0xDZs3Lv P0j7B466MMUnP+OQ/5MM7mhUdtvzFTmPcIpDpcgiMCaFUJMlHN1qu4qH9RE5tMrRsdRH 2gX+r41mNBQ3El7OKK7MNVLUOtrchvM0GLfRMd19wCDqNnOZcDMzq2PsNyoyLl1kWzZ+ 3UOg== MIME-Version: 1.0 Received: by 10.50.185.231 with SMTP id ff7mr3848558igc.40.1350719731744; Sat, 20 Oct 2012 00:55:31 -0700 (PDT) Received: by 10.43.75.201 with HTTP; Sat, 20 Oct 2012 00:55:31 -0700 (PDT) In-Reply-To: References: Date: Sat, 20 Oct 2012 13:25:31 +0530 Message-ID: Subject: Re: Repository construction From: Chetan Mehrotra To: oak-dev@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Oct 19, 2012 at 8:55 PM, Jukka Zitting wrote: > Note that this mechanism is mostly intended for embedded use. > Deployments in OSGi and other managed environments should use the > native construction/configuration mechanism of the environment. I was trying to modify the Oak usage in OSGi environment to match the settings similar to what is done in default o.a.j.oak.jcr.Jcr class. To achieve the compatibility I need to resolve couple of issues 1. Lucene and OSGi - To enable Lucene related logic some steps are required (A) Wrap up the Lucene jars as OSGi bundle - The current released versions of Lucene 4.0.0 are not OSGi bundles. Some discussion around it happened in LUCENE-3167 but looks like it did not got resolved. So should we create our own wrapper bundle in Oak for now? (B) Registration of Lucene related components - LuceneReindexHook,LuceneHook and LuceneIndexProvider with OSGi SR such that they can be picked up by the o.a.j.oak.osgi.Activator and registered with the ContentRepository being constructed. We can have a single Lucene component which uses OSGi configuration to configure Lucene related logic (for now its only the homePath) and registers the respective components in SR 2. Commit Hooks - Should we add a tracker for CommitHooks similar to the way we have ones for ValidatorProvider and IndexProviders. Or for now we can just update the list present in the o.a.j.oak.osgi.Activator to match the list and order we have in o.a.j.oak.jcr.Jcr 3. SecurityProvider - Need to register SecurityProviderImpl backed by OSGi configuration with SR. Would it be fine now to add osgi related changes Chetan Mehrotra