aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Ross (JIRA)" <>
Subject [jira] [Resolved] (ARIES-1328) Application subsystem does not import services
Date Thu, 24 Sep 2015 00:52:04 GMT


John Ross resolved ARIES-1328.
    Resolution: Not A Problem

David, I'm going to go ahead and mark this as "Not A Problem" for now based on the following
comments. Please reopen if you still have an issue.

So I think there are two bugs:
a. Require-Capability osgi.service on the application .esa level seems to be ignored. This
could be used to auto-import services.

This is by design. Require-Capability is not a supported subsystem manifest header for applications,
which have all requirements computed for them.

b. Require-Capability osgi.service on bundles inside the application .esa is not resolved
with effective:=active but seems to be resolved with effective:=resolve.

This is also by design. All requirements are effective for the offline resolution performed
by the subsystems impl so that dependecies can be computed. The resolution directive (mandatory
versus optional) does effect the offline resolution, however. The effective directive does
effect the framework runtime resolution at start time, however. Only effective:=resolve are

> Application subsystem does not import services
> ----------------------------------------------
>                 Key: ARIES-1328
>                 URL:
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>    Affects Versions: subsystem-core-1.2.0
>            Reporter: David Bosschaert
>            Assignee: David Bosschaert
>         Attachments: api-bundle-1.0.0-SNAPSHOT.jar, application-subsystem-nosvc-1.0.0-SNAPSHOT.esa,
application-subsystem-nosvc-rc.esa, application-subsystem-nosvc-ubrc.esa, svc-bundle2-1.0.0-SNAPSHOT.jar,
> I have an application Subsystem that has a bundle that looks for a service via a service
> This service and its API is provided by pre-existing bundles (api-bundle, svc-bundle2)
in the parent subsystem. 
> The OSGi enterprise R5 spec states in 134.16.1 (Application Subsystems):
> "Any required capabilities that are not satisfied by the application's constituents are
automatically shared in (imported) from the parent Subsystem."
> However when I install and start the application subsystem (application-subsystem-nosvc),
it does not find the services provided in the parent.
> I'm attaching the bundles and subsystem to reproduce. The full source code can be found

This message was sent by Atlassian JIRA

View raw message