I just talked to Jean-Baptiste about the problem. We agreed that
Import-Service may help to pull up the bundle offering the service but
it may still
not be ready in time.
So the real solution is to use blueprint service reference (set to
mandatory) or a ServiceTracker. The idea with both is that you only
really start your code when the service comes up
and that you also shut down when the service goes down. Blueprint is by
far the easiest solution as it will do it for you.
Christian
Am 25.04.2012 22:41, schrieb Christian Schneider:
You have to have an Import-Service statement in the Manifest for the
dependency to be recognized by the OSGi framework.
I reference my services using blueprint and use the maven bundle
plugin. So a suitable entry gets generated automatically. If you
use an Activator you will have to manually add the Manifest entry.
Christian
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com