Hi!

On 03/17/2015 11:08 PM, David Bosschaert wrote:
On 17 March 2015 at 20:33, Anders Engström <[email protected]> wrote:
Actually - I'm deploying a set of bundles from an ESA (sub-system
bundle) installed by a custom FileInstall ArtifactListener. I don't
(_want to_) know which bundles will be installed -- I basically only
want to check that there are no errors.

This is actually exactly what the OSGi Subsystems implementation does.
When you install a subsystem and any of the bundles fails to resolve
or start it throws an exception. Is that what you're looking for? You
can get it from Apache Aries. Unfortunately the Aries website doesn't
have good documentation yet, but I wrote a little blog about it a
while back that might get you going:
http://coderthoughts.blogspot.com/2014/01/osgi-subsytems-on-apache-felix.html


I actually read that article a year ago :) We tried using the Apache
Aries bundles but we ran into a bunch of different problems. Not sure if
it was related to our environment or if it was due to issues in Aries.
Either way we had to move forward and I wrote a _minimal_ implementation
of a FileInstall ArtifactListener that can read an ESA package and
install the bundles there-in.

We will probably switch over to a proper sub-system implementation in
the future, but right now this is what we have to work with :)

On the other hand - your reply gave me an idea. I could easily expose
he Artifact Listener as a service (similar to the `SubSystem` service)
and install the ESA package that way in the test-case ..

Best regards //Anders

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to