Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Exporting Service from Composite Subsystem(Exporting Service from Composite Subsystem does not work. Any ideas?)
Exporting Service from Composite Subsystem [message #1714552] Fri, 13 November 2015 13:57
Timo Rohrberg is currently offline Timo RohrbergFriend
Messages: 69
Registered: September 2011
Location: Karlsruhe
Hello everybody,

I have the following setup (see attached ZIP):

- An OSGi/Equinox runtime with Apache Aries Subsystem implementation.
- Two composite subsystems in the folder subsystems.
- The first subsystem de.vitasystems.example.subsystems.dc.commands consists of only one bundle which registers the HelloWorldCommandProvider class as an implementation for the org.eclipse.osgi.framework.console.CommandProvider service.
- The second subsystem consists of two bundles and The first of them defines the service and the second of them provides and registers an implementation for it

Whenever I start the OSGi runtime now and execute the following commands one after another, my two subsystems are correctly installed and started:

subsystem:install file:subsystems/de.vitasystems.example.subsystems.dc.commands-1.0.0-SNAPSHOT.esa
subsystem:install file:subsystems/
subsystem:start 1
subsystem:start 2

However, the org.eclipse.osgi.framework.console.CommandProvider service of the first subsystem is correctly registered, whereas the service of the second subsystem is not.

I just don't see what is wrong... The only difference is that the interface of the provided service is once provided by the OSGi/Equinox framework and in the other case within the second subsystem. But that should not make a difference, right? I am exporting the two services correctly in the SUBSYSTEM.MF file...

Do you guys have any idea what I am doing wrong?

Thanks for any hint.

Previous Topic:Configuring a ManagedServiceFactory with
Next Topic:Versioning for RCP update
Goto Forum:

Current Time: Thu Oct 06 14:03:08 GMT 2022

Powered by FUDForum. Page generated in 0.02358 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top