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


Reply via email to