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 0B8BDF680 for ; Tue, 2 Apr 2013 12:35:01 +0000 (UTC) Received: (qmail 47827 invoked by uid 500); 2 Apr 2013 12:35:00 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 47708 invoked by uid 500); 2 Apr 2013 12:35:00 -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 47678 invoked by uid 99); 2 Apr 2013 12:35:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2013 12:35:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ianboston@gmail.com designates 209.85.220.175 as permitted sender) Received: from [209.85.220.175] (HELO mail-vc0-f175.google.com) (209.85.220.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2013 12:34:55 +0000 Received: by mail-vc0-f175.google.com with SMTP id hf12so337689vcb.6 for ; Tue, 02 Apr 2013 05:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=/JqiN+Kw7A15EQV5mr9MtXHdptUhbBFBsR4SF1WJVF8=; b=p+mlEA8dx/7+2mDfyMy4EFsNn55sXkUiKJ8kl9JC4F5uaQyxVGmeStohAooooILHia px6IDosFCdaV6uhstPIW6T4TXKQnae9uVZez2nmy/CR83Y1IAWFaeJbUwesn3aRTtzh8 XqKifckN0tv9erlgn4J/siRyXdaYQopVd7j4qFFBThHBSKFe2RumbcN1RaR/edTENmKh mMZ+dxvNafE/jaDkHen0A0kZwmK39WV8hdUgHpVPdlwVN3Y5rwL+SdeLHpw9n1BIeN+S W8QylJwBO3w9mOplAmdTKADB0hylToH69zqybrRvFo+gcLvOR+nfyzVjofgfuZTFz78n naig== MIME-Version: 1.0 X-Received: by 10.220.228.74 with SMTP id jd10mr12181212vcb.65.1364906074873; Tue, 02 Apr 2013 05:34:34 -0700 (PDT) Sender: ianboston@gmail.com Received: by 10.52.159.200 with HTTP; Tue, 2 Apr 2013 05:34:34 -0700 (PDT) In-Reply-To: References: Date: Tue, 2 Apr 2013 23:34:34 +1100 X-Google-Sender-Auth: bg-zAN-2NhPG-C0piVpQUMB30uY Message-ID: Subject: Re: NodeStore or MicroKernel. From: Ian Boston To: "oak-dev@jackrabbit.apache.org" Content-Type: multipart/alternative; boundary=14dae9ccd516bed56704d95ff57e X-Virus-Checked: Checked by ClamAV on apache.org --14dae9ccd516bed56704d95ff57e Content-Type: text/plain; charset=ISO-8859-1 On Tuesday, April 2, 2013, Jukka Zitting wrote: > Hi, > > On Thu, Mar 28, 2013 at 9:39 AM, Ian Boston > > wrote: > > Should I depend on a reference of a MicroKernel or a NodeStore when > > constructing the Oak class (new > > Oak(?).when(....).createContentRepositroy()) ? > > It's better if you use the Oak(NodeStore) signature as that'll work > also with the SegmentMK backend that implements just the NodeStore > interface instead of MicroKernel. The Oak(MicroKernel) signature just > wraps the given MicroKernel instance to a KernelNodeStore. Good to know, I'll switch to nodestore. > > > I see there are a number of providers in the oak-core bundle. Should I > > use these to build the Oak class or is it Ok to build it from internal > > instances ? > > You mean the OSGi services that oak-core provides? Yes. > > It's still a bit of an open question whether the core repository > should be wired up entirely through OSGi or have some of the core > components (security, node type validation, etc.) injected directly > with Oak.with() as hardcoded parts. The latter approach (coupled with > hooks to bring in also more dynamic OSGi services) might be better as > it gives us more control over repository startup. Ok, I think I am going to go with direct injection, but I suspect it will be easy to change later if required. One last question. Should I expect a a SecurityConfiguration to be present ? I have loaded the Felix JAAS boot bundle, and configured all the LoginModules listed in the oak-core bundle ( btw, there is a comma missing in the pom.xml ) but I still get an error message saying no Security Configuration is available from JAAS, on login attempts. Thanks Ian > > BR, > > Jukka Zitting > --14dae9ccd516bed56704d95ff57e--