javaspringosgiapache-servicemixspring-dm

OSGi list, what are those headers?


I'm using Fuse ESB (ServiceMix) and I've been searching all over in the hope to find a better explanation of the various headers when running the command 'osgi:list'. Namely the two columns I want to understand are 'Blueprint' and 'Spring'. I have my guesses as to what their various statuses refer to, but then other scenarios come up which make me question this.

If anyone could provide some explanation, or better, point me to some documentation that explains the various columns and their potential values, that will be most helpful.


Solution

  • here are the meanings of the various values that can show up in those columns:

    Created - the blueprint/spring container was created and all dependencies were resolved successfully.

    Creating - the bundle is in the process of being created

    Destroyed - the bundle's spring/blueprint container was completely destroyed (happens after it's unregistered as a service)

    Failure - the bundle's spring/blueprint container failed to start (either due to an exception or a missing dependency after the grace period expires)

    Grace Period - The bundle has 1 or more unsatisfied dependencies.

    Waiting - the bundle is waiting on the availability of a service that satisfies a dependency

    Full documentation can be found by reading the descriptions of the constants for Blueprint. the Spring states mirror those definitions, though I can't find a good resource online for them. As for why they show up for only some bundles: they'll only have a value if the module contains either a blueprint or a spring file.