Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] services in p2


We currently rely on the exemplary setup bundle to register all the services in the appropriate order. I believe in other headless apps we either use exemplary setup, or manually register the services we need in the correct order. Yes, this is a bit gross, and there has been lots of discussion about how to fix this. See for example https://bugs.eclipse.org/bugs/show_bug.cgi?id=225250.

I don't suggest messing with bundle start levels to work around it.




Ian Bull <irbull@xxxxxxxxxxxxxxxxx>
Sent by: p2-dev-bounces@xxxxxxxxxxx

02/06/2009 07:28 PM

Please respond to
P2 developer discussions <p2-dev@xxxxxxxxxxx>

To
P2 developer discussions <p2-dev@xxxxxxxxxxx>
cc
Subject
[p2-dev] services in p2





I was running the publisher (bundles and features) to test some things out, and I started to receive errors in my OSGi console.
After hacking around a bit, I realized what was going on.

In metadata repository (CacheManager), we are trying to get IProvisioningEventBus service.  However, this service was not actually being registered until the Abstract publisher application runs.  Because these two bundles (Metadata repo and the publisher) are both started at the default run level, it is anyones guess which one will run first.

Should we be considering DS for stuff like this, or should I just start these bundles at different start levels in my launch configurations?

Cheers,
Ian

--
R. Ian Bull, PhD
Software Developer, EclipseSource

http://www.ianbull.com
http://blog.ianbull.com_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev


Back to the top