Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 39403 invoked from network); 4 Dec 2007 15:49:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2007 15:49:06 -0000 Received: (qmail 95031 invoked by uid 500); 4 Dec 2007 15:48:54 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 94779 invoked by uid 500); 4 Dec 2007 15:48:54 -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 94770 invoked by uid 99); 4 Dec 2007 15:48:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2007 07:48:54 -0800 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 heavy@ungoverned.org designates 69.89.24.10 as permitted sender) Received: from [69.89.24.10] (HELO outbound-mail-95.bluehost.com) (69.89.24.10) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 04 Dec 2007 15:48:31 +0000 Received: (qmail 12537 invoked by uid 0); 4 Dec 2007 15:48:34 -0000 Received: from unknown (HELO host118.hostmonster.com) (74.220.207.118) by mailproxy5.bluehost.com with SMTP; 4 Dec 2007 15:48:34 -0000 Received: from nat-09.eecs.tufts.edu ([130.64.23.209] helo=heavy.glastender.com) by host118.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Iza0g-00053p-3W for dev@felix.apache.org; Tue, 04 Dec 2007 08:48:34 -0700 Message-ID: <475575BE.4090306@ungoverned.org> Date: Tue, 04 Dec 2007 10:43:58 -0500 From: "Richard S. Hall" User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: dev@felix.apache.org Subject: Re: [FELIX] OBR resolving system packages and the Execution Environment References: <475476D4.3070902@ungoverned.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {1027:host118.hostmonster.com:ungovern:ungoverned.org} {sentby:smtp auth 130.64.23.209 authed with heavy@ungoverned.org} X-Virus-Checked: Checked by ClamAV on apache.org Roshan A. Punnoose wrote: > I'm not sure if it is just my implementation, but when I added a > repository xml that required a System Package (one that is already > available in java "org.xml.sax") or a ExecutionEnvironment requirement > ("ee") the resolve does not work. Is there any current workaround? > OBR does deal with EE yet, but it should work with packages available from System Bundle, I believe. -> richard > Roshan > > -----Original Message----- > From: Roshan A. Punnoose [mailto:rpunnoose@proteus-technologies.com] > Sent: Tuesday, December 04, 2007 8:31 AM > To: dev@felix.apache.org > Subject: RE: [FELIX] OBR tied to the BundleContext > > Actually I found my issue. What happened is the LocalResource in the > ResolverImpl does find all bundles associated in the current > BundleContext and will update with the latest stream if an update is > required. However, my bundle that I wanted to update had a > symbolicName=temp;singleton=true, and the repository xml did not have > the "singleton" property. So the ResolverImpl did not recognize that I > had a "temp" bundle already installed and only required an update. What > should happen I believe is that the LocalResourceImpl should parse the > symbolicName to "temp" and not "temp;singleton=true". > > Roshan > > -----Original Message----- > From: Richard S. Hall [mailto:heavy@ungoverned.org] > Sent: Monday, December 03, 2007 4:36 PM > To: dev@felix.apache.org > Subject: Re: [FELIX] OBR tied to the BundleContext > > Roshan, > > I am not sure I understand the situation you are describing. > > Adding a repository XML to repo admin will not be impacted by what > bundles are currently installed in the framework. OBR just maintains a > list of available bundles. If you try to install a bundle from a > repository, OBR's resolve process will look at what is installed locally > > to make decisions about what it needs to download. > > If a bundle is already installed, it should not download it again, > unless it determines that it needs a different version or something. > > -> richard > > Roshan A. Punnoose wrote: > >> Hi, >> >> >> >> Looking into the OBR code, I think it might be useful to have the OBR >> RepositoryAdmin tied to the BundleContext and the bundles that are >> already active in OSGi container. Right now, I am running the felix >> > OBR > >> bundle in Equinox, but it does not tie to the BundleContext. So when I >> try and add an OBR repository xml containing plugins that already >> > exist > >> in the container, it throws an exception because these bundles already >> exist in the container. However, if the OBR bundle was tied to the >> BundleContext, it should see that there are already Resources/Bundles >> available to the container and not try and deploy these. >> >> >> >> I can see where to do it in the code, and I can submit a patch for it. >> Is this a path that seems reasonable to you? >> >> >> >> Roshan >> >> >> >>