Return-Path: Delivered-To: apmail-incubator-felix-dev-archive@www.apache.org Received: (qmail 16871 invoked from network); 21 Nov 2006 16:21:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Nov 2006 16:21:31 -0000 Received: (qmail 5887 invoked by uid 500); 21 Nov 2006 16:21:40 -0000 Delivered-To: apmail-incubator-felix-dev-archive@incubator.apache.org Received: (qmail 5856 invoked by uid 500); 21 Nov 2006 16:21:40 -0000 Mailing-List: contact felix-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: felix-dev@incubator.apache.org Delivered-To: mailing list felix-dev@incubator.apache.org Received: (qmail 5838 invoked by uid 99); 21 Nov 2006 16:21:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Nov 2006 08:21:40 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Nov 2006 08:21:26 -0800 Received: by ug-out-1314.google.com with SMTP id y2so1908573uge for ; Tue, 21 Nov 2006 08:21:04 -0800 (PST) Received: by 10.67.22.2 with SMTP id z2mr1386990ugi.1164126061640; Tue, 21 Nov 2006 08:21:01 -0800 (PST) Received: from ?192.168.0.33? ( [82.199.200.165]) by mx.google.com with ESMTP id 28sm9576871ugc.2006.11.21.08.21.00; Tue, 21 Nov 2006 08:21:01 -0800 (PST) Message-ID: <4563276B.5090401@damencho.com> Date: Tue, 21 Nov 2006 18:20:59 +0200 From: Damian Minkov User-Agent: Icedove 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: felix-dev@incubator.apache.org Subject: Re: Problem moving to Felix References: <4563050A.1010101@damencho.com> <45630843.9020709@ungoverned.org> In-Reply-To: <45630843.9020709@ungoverned.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm not sure I've understood the question - but if the question is whether I import the package the answer is yes :) Actually the package "Service-Found-In-SomeBundle" is exported from someBundle. And the pseudo code in my previous mail is actually in other bundle which imports this package. damencho Richard S. Hall wrote: > Damian Minkov wrote: >> Hello, >> >> In the SIP Communicator project we were happily using oscar 2.0 for a >> while but have now decided to move to Felix. We are however running >> into some difficulties so I thought that someone might have an idea >> what is causing them. >> >> Here is one such Felix related problem that we didn't have with Oscar. >> >> Bundle someBundle ...... >> >> bundleContext.getServiceReference("Service-Exported-By-someBundle"); >> //the service is found and working >> >> someBundle.uninstall(); >> >> someBundle = >> bundleContext.installBundle("Service-Exported-By-someBundle"); >> >> bundleContext.getServiceReference("Service-Found-In-SomeBundle"); >> //!!! Not found >> >> someBundle.getRegisteredServices() >> // The "Service-Exported-By-someBundle" is among the registered services >> >> The problem is that the bundlecontext instance we are using seems to >> not be valid anymore. > > Does the code above get access to the service interface of the service > provided by "someBundle"? In other words, does the bundle containing > the code above access the service using reflection or does the bundle > actually have a wire to the service interface package? > > -> richard >