Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB5858D13 for ; Fri, 12 Aug 2011 09:14:07 +0000 (UTC) Received: (qmail 95949 invoked by uid 500); 12 Aug 2011 09:14:06 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 95497 invoked by uid 500); 12 Aug 2011 09:14:00 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 95479 invoked by uid 99); 12 Aug 2011 09:13:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2011 09:13:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of niibasta@gmail.com designates 209.85.161.49 as permitted sender) Received: from [209.85.161.49] (HELO mail-fx0-f49.google.com) (209.85.161.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2011 09:13:47 +0000 Received: by fxd20 with SMTP id 20so3309540fxd.22 for ; Fri, 12 Aug 2011 02:13:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=2irVLIo2fUb/dzwuvhRuHxv83WtQL03J/QHv0kmLDM4=; b=SBvJeCTBXYx42U2lsMbZ4WVroOl3MtwGGUCOs0HUFQgXugplVCiIACPUpcGMCa3mOP yBQO9gDilLReGcHuq8hKOVrBjJD9IPfibggwIS6fpxtNl4oLMsdnFo3KTrG25ZOlaiQy hTGRRy5YRXSfgDWW4rPq69JMyL4/XyuMQBWyM= Received: by 10.223.16.210 with SMTP id p18mr958747faa.71.1313140406480; Fri, 12 Aug 2011 02:13:26 -0700 (PDT) Received: from [192.168.1.131] ([195.137.187.2]) by mx.google.com with ESMTPS id d5sm2255706fak.40.2011.08.12.02.13.23 (version=SSLv3 cipher=OTHER); Fri, 12 Aug 2011 02:13:24 -0700 (PDT) Message-ID: <4E44EEDF.8040307@gmail.com> Date: Fri, 12 Aug 2011 13:14:07 +0400 From: "niibasta@gmail.com" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.20) Gecko/20110805 Lightning/1.0b2 Thunderbird/3.1.12 MIME-Version: 1.0 To: users@felix.apache.org Subject: Re: Help understanding OSGi class loading References: <09C44065E0310A4E9EEC1B858A0C342A30B1EA5D1C@GRPGTIMAILBOX.groupgti.net> In-Reply-To: <09C44065E0310A4E9EEC1B858A0C342A30B1EA5D1C@GRPGTIMAILBOX.groupgti.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello! I didn't understand clearly your task. Do you have one bundle with classes and another bundle with spring xml file? On 12.08.2011 12:03, Jim Talbut wrote: > Hi, > > I've just been surprised by the behaviour of karaf/felix and I'd be grateful for some help understanding how this works. > > My code is split into two chunks: > > 1. A compiled bundle. > > 2. A Spring XML file. > My intention is that the Spring file contains all the configuration relating to the piece of work, whilst the bundle contains the (more static) compiled code - with the intention of being able to update/replace the Spring file whenever I want. > > I just found an error in the bundle and uninstalled it, but the bundle created for the Spring file is still running. > > Does this mean that only OSGi services are dynamically removed, and if the Spring file directly references exported classes from a bundle then the classes are only resolved via OSGi when they are loaded? > In which case will restarting the Spring bundle clear it out adequately to ensure that it picks up a new compiled bundle? > > Thanks > > Jim > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org