Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 7335 invoked from network); 28 Nov 2009 01:43:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Nov 2009 01:43:54 -0000 Received: (qmail 44489 invoked by uid 500); 28 Nov 2009 01:43:54 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 44387 invoked by uid 500); 28 Nov 2009 01:43:53 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 44379 invoked by uid 99); 28 Nov 2009 01:43:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Nov 2009 01:43:52 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mrduguo@gmail.com designates 209.85.220.215 as permitted sender) Received: from [209.85.220.215] (HELO mail-fx0-f215.google.com) (209.85.220.215) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Nov 2009 01:43:50 +0000 Received: by fxm7 with SMTP id 7so2166786fxm.9 for ; Fri, 27 Nov 2009 17:43:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=K09kAs+mZvx2zpdbBACXF8+p6QJ9INJEjlJICx89tWA=; b=Gu6wnyHN10lAWz9uJ8b5kT/uhPNts6YkaczekyRQDC8c7m0gnOXwiElChZW6okQSDL UiqKDR/D6nunSGoHlteZ/RmQZ3cfFO18KzkBv5tuX+IcFa1MBfGSuiseTmhagEDqTUv/ pt+9OLtkgi8InTUiXJn0NqB9I7SSepSQ0brIs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=PR9yqBxPyen4Qhageerz/keHSdOyFVRn4r6J05sBEGgcrpHlRwAOGDNR9oWjXhIJ/L CWaRXX9AWI3KSxS/Y7Cuc5HJVoH4BQ25cUgt17xawoiuTRAF0TW3tZm94eC+4e0nGL1v Fr7SK5TBKikgs5ebeYMY8eMIfZZ4w0oQJhWBo= MIME-Version: 1.0 Received: by 10.102.236.11 with SMTP id j11mr597621muh.3.1259372609222; Fri, 27 Nov 2009 17:43:29 -0800 (PST) In-Reply-To: <4B103472.4050903@gmail.com> References: <4B0FD916.5080102@gmail.com> <4B102D25.9070209@gmail.com> <4B103472.4050903@gmail.com> Date: Sat, 28 Nov 2009 01:43:29 +0000 Message-ID: Subject: Re: Sling's use of Jackrabbit From: Guo Du To: dev@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Fri, Nov 27, 2009 at 8:20 PM, Felix Meschberger wrote: > Issue is that Jackrabbit is configured with a repository.xml file which > itself refers to optional classes. Most notably these are the > PersistenceManager classes along with their dependencies. So this > provides some issues with setting up the bundle. OSGi DynamicImport-Package header is designed to work with this situation. It was used to work with dynamic environment such as groovy or templating. > In addition there might be requirements to flexibly add LoginModule(s) > in OSGi style using the OSGi service registry. This is not available > from the jackrabbit-core library and we have added support for this in > Sling. As repository.xml was the core to boot up the repository, the lookup LoginModule from OSGi service could be an helper class aware of bundleContext to get reference from other bundle. It may not worth to add OSGi dependencies to JR core. -Guo