Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 15226 invoked from network); 25 Feb 2010 16:18:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2010 16:18:17 -0000 Received: (qmail 87459 invoked by uid 500); 25 Feb 2010 16:18:16 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 87419 invoked by uid 500); 25 Feb 2010 16:18:16 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 87411 invoked by uid 99); 25 Feb 2010 16:18:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2010 16:18:16 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gnodet@gmail.com designates 216.239.58.189 as permitted sender) Received: from [216.239.58.189] (HELO gv-out-0910.google.com) (216.239.58.189) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2010 16:18:07 +0000 Received: by gv-out-0910.google.com with SMTP id y18so98454gvf.39 for ; Thu, 25 Feb 2010 08:17:47 -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 :content-transfer-encoding; bh=AYnmZigk/Ednucal/js1q08uRkA1vwNCbyJdXbW6iWs=; b=UmfyPzVK3DscOYZPhFlCL3/DaKq8p1QDyKksbojf9nU9c9iCoNzLaeYxSNsX37GN7Z 63As+qeVabPM4oZjV2RxOkVu61D4RpzrvNjsRv4rWUw4Lwgu53nnJESH2g6dXNNgwsEt 5GShGO4OQfyqjAi7t0Nh+3d/ry3RNNNYmeq9Q= 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:content-transfer-encoding; b=P/h49eGR5uZrkULgzAY8akQE3fJ0o2nOxq+iCWx9FA/PHe37bsnVlZsZ7x5fHAmaOJ lpAtYqjG/P8b+4btb1RDH+q9BbNH7xS9SUjl6f5Blzgz4UQUvju907Y9aapvoejDRQPN lUwSCS4TDga0aOuA5cSsb5Jxiui35o5R3pTKc= MIME-Version: 1.0 Received: by 10.102.235.24 with SMTP id i24mr1007317muh.46.1267114666287; Thu, 25 Feb 2010 08:17:46 -0800 (PST) In-Reply-To: <487a994c1002250815g57423918k73e3ab75dc15483a@mail.gmail.com> References: <4B865F90.40108@gmail.com> <55afdc851002250726n23df74d2r7d60e3a490e626ec@mail.gmail.com> <487a994c1002250815g57423918k73e3ab75dc15483a@mail.gmail.com> Date: Thu, 25 Feb 2010 17:17:46 +0100 Message-ID: Subject: Re: [all] OSGI - POOL-160 From: Guillaume Nodet To: dev@felix.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org What is the best practices for libraries wrt to importing their own exported packages. On Thu, Feb 25, 2010 at 17:15, Karl Pauls wrote: > On Thu, Feb 25, 2010 at 5:11 PM, Guillaume Nodet wrote= : >> Guys, can we discuss that and come back with a statement we all agree on= ? > > Discuss what? > > regards, > > Karl > >> ---------- Forwarded message ---------- >> From: Niall Pemberton >> Date: Thu, Feb 25, 2010 at 16:26 >> Subject: Re: [all] OSGI - POOL-160 >> To: Commons Developers List >> >> >> On Thu, Feb 25, 2010 at 3:17 PM, J=F6rg Schaible = wrote: >>> Hi Guillaime, >>> >>> Guillaume Nodet wrote at Donnerstag, 25. Februar 2010 15:49: >>> >>>> I just had a lively chat with Peter who kinda agreed that >>>> substitutability issue is mostly important for APIs. >>>> >>>> Please have a look at the Felix FAQ entry: >>>> =A0 http://felix.apache.org/site/apache-felix-osgi- >>> faq.html#ApacheFelixOSGiFAQ-Shouldabundleimportitsownexportedpackages%2= 53F >>>> I haven't written it, so I can't be blame for that one. >>>> The last paragraph says: >>>> =A0 =A0 "The main time you want to export only, is if your bundle is >>>> purely a library bundle, then its packages will only be used if they >>>> are needed." >>> >>> what we are saying is, that none of us is an OSGi expert and before we >>> published the first artifact with such information, we took the advice = of >>> the Apache Felix community. If they recommend now something different, = we'd >>> like to get some "official" blessing for the changes, simply because we >>> cannot really review it. >> >> +1 >> >> Niall >> >> >>>> In all cases, the current imports *are* wrong and need to be fixed, >>>> because the way they are written will fail if there is any >>>> incompatible change ever introduced (whatever the version). =A0And I >>>> don't think we should guarantee that, especially across major >>>> versions. >>> >>> What has been released is final. We're not able to change that anymore.= All >>> we can do is to change the OSGi information for new releases. >>> >>>> Anyway, the problem is the following. >>>> You install commons-pool 1.5 in the osgi framework. >>>> Then you install commons-pool 1.4 later. >>>> What you end up with is: >>>> >>>> karaf@root> osgi:list -l | grep commons-pool >>>> [ 100] [Active =A0 =A0 ] [ =A0 =A0 =A0 =A0 =A0 =A0] [ =A0 =A0 =A0 ] [ = =A0 60] >>>> mvn:commons-pool/commons-pool/1.5.4 >>>> [ 124] [Active =A0 =A0 ] [ =A0 =A0 =A0 =A0 =A0 =A0] [ =A0 =A0 =A0 ] [ = =A0 60] >>>> mvn:commons-pool/commons-pool/1.4 >>>> karaf@root> packages:exports 100 >>>> Commons Pool (100): org.apache.commons.pool.impl; version=3D1.5.4 >>>> Commons Pool (100): org.apache.commons.pool; version=3D1.5.4 >>>> karaf@root> packages:exports 124 >>>> Apache Commons Pool Bundle (124): No active exported packages. >>>> karaf@root> packages:imports 124 >>>> Commons Pool (100): org.apache.commons.pool.impl; version=3D1.5.4 >>>> Commons Pool (100): org.apache.commons.pool; version=3D1.5.4 >>>> karaf@root> osgi:start 170 >>>> Error executing command: Unresolved constraint in bundle >>>> org.apache.activemq.activemq-pool [129]: package; >>>> (&(package=3Dorg.apache.commons.pool.impl)(version>=3D1.4.0)(! >>> (version>=3D1.5.0))) >>> >>> While I see an error, it does not tell me a lot ;-) >>> >>> - J=F6rg >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >>> For additional commands, e-mail: dev-help@commons.apache.org >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> For additional commands, e-mail: dev-help@commons.apache.org >> >> >> >> >> -- >> Cheers, >> Guillaume Nodet >> ------------------------ >> Blog: http://gnodet.blogspot.com/ >> ------------------------ >> Open Source SOA >> http://fusesource.com >> > > > > -- > Karl Pauls > karlpauls@gmail.com > --=20 Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com