Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 45186 invoked from network); 27 Oct 2008 21:02:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2008 21:02:23 -0000 Received: (qmail 98835 invoked by uid 500); 27 Oct 2008 21:02:27 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 98796 invoked by uid 500); 27 Oct 2008 21:02:27 -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 98785 invoked by uid 99); 27 Oct 2008 21:02:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2008 14:02:27 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gnodet@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2008 21:01:10 +0000 Received: by nf-out-0910.google.com with SMTP id 30so834640nfu.5 for ; Mon, 27 Oct 2008 14:00:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=w+UmcOSLYQjY55WTwc9AZsWlCziDnpXJqtiGmYAjQc8=; b=BPt5vSzdOQnkzJnZZwsnOJa4Gjts7a7MXnBWPma+uIXfc3AN6B1pGC8Hx4n15Ms/eb FFkwqnS2WRzxBf9CFU5eAbr/Vw6Bts/05GgIzaw4PG8ws8Xe/DgyXj6eRZIBe3D2sB2U NkQVZjcjHLpVCz1O7h0XqYEeo6D5cIjGLWk8o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=YKOoVmHCN30uDOpS1X5dUumwFUGg69+YrT9jaugrWSWnEpBNLCpXXwpUu99jVlIqJY gEgwB4wwTZ9SrPmTEgdzfRzhD4aPxKfPGOa4NnrWwTccfydEAP0lupvlo2aUkz88CnkR muh75ZSQC6xpx+5JMl44m2P6hs4y71hP9vUZ4= Received: by 10.103.218.9 with SMTP id v9mr2988105muq.58.1225140640780; Mon, 27 Oct 2008 13:50:40 -0700 (PDT) Received: by 10.103.226.6 with HTTP; Mon, 27 Oct 2008 13:50:40 -0700 (PDT) Message-ID: Date: Mon, 27 Oct 2008 21:50:40 +0100 From: "Guillaume Nodet" To: "Apache Directory Developers List" Subject: Re: OSGi Packaging for ApacheDS In-Reply-To: <43b026c70810271315v58828baakd6059640d59951a2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <43b026c70810271315v58828baakd6059640d59951a2@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org The other alternative may be to create a single bundle which contains all the apacheds classes without the third party dependencies. CXF hit the same problem and they have included this big bundle into their build process so that users can still deploy it in OSGi. Such a jar can also be used when embedding ApacheDS and can be used by non-OSGi users too as it avoids dealing with all the small jars. I guess, in the short term, this may be the easiest way, pending a reorganization of the packages. My 2 cents. On Mon, Oct 27, 2008 at 9:15 PM, Chris Custine wrote: > Hi Guys, > As an interim step to eventually deploying inside an OSGi container, I have > started working out packaging the jar files as OSGi bundles just to see how > much work it will be. The idea is that in the short term nothing should > affect ongoing development because the bundle packaging is just some > modifications to the module pom.xml files which add the OSGi headers to the > MANIFEST.MF files at build time. > > In doing this I have realized that there are quite a few cases of split > packages where two (sometimes three or more) projects have classes in the > same package. This is important for the OSGi packaging because package > names are the primary descriptor for importing and exporting code from > bundles and if more than one bundle exports from the same package there is > quite a bit more work to maintaining the packaging configuration (in this > case, a plugin config in the pom.xml). One big example is the > org.apache.directory.server.core.partition.* packages which are contained in > multiple partition implementations as well as apacheds-core. > > So my first question is if this is something that we want to discuss and > start taking care of now? There are several solutions obviously, and it is > quite possible that we can work around this with hand crafted packaging > descriptors for the OSGi bundles. This is a bit of work however and long > term maintenance of the packaging will be much higher. Other options > include re-organizing packages to have more unique structure (my personal > preference), or we could also combine some of the scattered code into > consolidated jar files. > > Any input or alternative ideas? > > Thanks, > Chris > > -- > Chris Custine > My Blog :: http://blog.organicelement.com > Apache ServiceMix :: http://servicemix.apache.org > Apache Directory Server :: http://directory.apache.org > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com