From dev-return-39311-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Mon Oct 17 15:53:10 2011 Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5372C96FA for ; Mon, 17 Oct 2011 15:53:10 +0000 (UTC) Received: (qmail 84324 invoked by uid 500); 17 Oct 2011 15:53:10 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 84282 invoked by uid 500); 17 Oct 2011 15:53:10 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 84275 invoked by uid 99); 17 Oct 2011 15:53:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2011 15:53:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ayyagarikiran@gmail.com designates 209.85.210.178 as permitted sender) Received: from [209.85.210.178] (HELO mail-iy0-f178.google.com) (209.85.210.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2011 15:53:05 +0000 Received: by iaqq3 with SMTP id q3so7650478iaq.37 for ; Mon, 17 Oct 2011 08:52:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=D7eaaBuFfVYEHWz28smXViA+Z5W0GTv6GlnWTCEC+/8=; b=mCI0yXm4UyPf/Lck4zP7FEEYx4yo1tc4B2SG8f2XBZUzJ0VUA1mZBYYUHf0vG22tz6 WwcCL0sptr0shTbWT8tj4c8flcxmzGJnVZ3TvPcoMsRng38REOnMumdoudkQa7rPWkND VtARqJtLlOcD0XLaAOnIcn7jCOSHnggXrFGI8= MIME-Version: 1.0 Received: by 10.231.46.136 with SMTP id j8mr9117810ibf.43.1318866764844; Mon, 17 Oct 2011 08:52:44 -0700 (PDT) Sender: ayyagarikiran@gmail.com Received: by 10.231.15.5 with HTTP; Mon, 17 Oct 2011 08:52:44 -0700 (PDT) In-Reply-To: References: <4E96D5D7.9060507@gmail.com> Date: Mon, 17 Oct 2011 11:52:44 -0400 X-Google-Sender-Auth: c6b13_1sPJlK18b6YIe4PwSrRwY Message-ID: Subject: Re: [ApacheDS 2.0] OSGI, Implementing modularity From: Kiran Ayyagari To: Apache Directory Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable thanks Gokturk for the details, have another q. what will happen if I try to run the server in another OSGi runtime? will the server still start its own OSGi runtime? On Mon, Oct 17, 2011 at 11:42 AM, G=F6kt=FCrk Gezer wrote: > Hi Kiran, Pierre > Answer depends on which level we'll use OSGI. If we'll only support OSGI, > the answer is yes. If we'll use OSGI as our fuel to make ApacheDS > extendable, the answer is no. > But only supporting is not a good decision for ApacheDS. As OSGI support,= we > can only separate 3.th party dependencies for now and make ApacheDS > megabundle, so that users can install ApacheDS on their OSGI frameworks > without causing library dependency problems. This can already be implemen= ted > in no time. > However as we use OSGI to actually make ApacheDS extendable , we have to = use > other features of OSGI other than modularity. And that makes us dependent= on > OSGI Framework. Any other solution for extendability other than OSGI will > also broke your current way of running ApacheDS. > So, OSGI support is something meaningful for libraries only. For an > application like ApacheDS, we must sit on top of OSGI. That will change o= ur > way of deploying, installing and running ApacheDS. > > Regards, > Gokturk > > On Mon, Oct 17, 2011 at 5:16 PM, Pierre-Arnaud Marcelot > wrote: >> >> Hi Kiran, >> >> That's a very good and important question. >> >> It would be cool if we could do the same thing we did with the API >> (Shared) which is OSGI-ready but also works perfectly as a set of simple >> (good old) jar files. >> >> Regards, >> Pierre-Arnaud >> >> On 17 oct. 2011, at 16:10, Kiran Ayyagari wrote: >> >> > Is it possible to start the server without using karaf at all after >> > complete OSGification of the server? >> > put it in another way, would it be possible to start the server using >> > the existing apacheds.sh script, without loading karaf? >> > >> > >> > On Mon, Oct 17, 2011 at 1:04 AM, G=F6kt=FCrk Gezer >> > wrote: >> >> Hi Emmanuel, >> >> I attached "custom felix framework distribution" patch at >> >> #DIRSERVER-1669 . >> >> This custom framework will let us run and debug our OSGI based codes >> >> inside >> >> Eclipse. To use it properly, there are two additional steps: >> >> ...after mvn install, mvn eclipse:eclipse and importing projects into >> >> Eclipse >> >> 1-) Add apache-felix/bin/felix.jar to project's Build Path ( to use >> >> ApacheDS-OSGI.launcher ) >> >> 2-) In apache-felix =A0project's Build Path, add all projects in >> >> workspace as >> >> project dependencies. ( to enable source viewing while debugging >> >> (requires >> >> Eclipse restart) ) >> >> With this in our hands, we can work on OSGI faster than ever. >> >> >> >> Regards, >> >> G=F6kt=FCrk >> > >> > >> > >> > -- >> > Kiran Ayyagari >> > > --=20 Kiran Ayyagari