Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » What are configurators and how to auto-discover bundles and start them?
What are configurators and how to auto-discover bundles and start them? [message #875952] Wed, 23 May 2012 15:52
Libor Jelinek is currently offline Libor JelinekFriend
Messages: 143
Registered: January 2012
Location: Prague, Czech Rep.
Senior Member

I'm fighting with Equinox how to auto-discover bundles of product,
install and start them automatically.

My app needs to start one special bundles before everything else, so I
set this bundle to start on level 3, whereas all others are in start
level 4 (default start level).

As result, I have to manually manage a list of bundles in configuration
tab of product editor (this will contribute an osgi.bundles list in
configuration.ini on product export).

This is very annoying and error-prone so I would like to somehow
auto-discover bundles on which my product depends on and to start them.
Unfortunately it seems there is a only very few documentation on this

So far, I've only very vague feeling that it has something to do with
"configurators" and p2. Also, I have only IDE's user knowledge of p2 at
this moment. I also would like to believe that it will not be necessary
to learn full p2 because I don't need its functionality at all right now.

=== Update configrator ===
For example mentions
org.eclipse.equinox.update.configurator. It promises exactly what I'm
looking for but again I can't any information on it (manual, tutorials,
broader explanation, ...).

=== Simple configurator ===
Also, other posts (like
talk about org.eclipse.equinox.simpleconfigurator. But from this post I
understand that it only postpones the job from config.ini' osgi.bundles
to file. So bundles still must be listed manually.

=== Equinox book ====
Throughout "OSGi and Equinox" is developed in-house "auto-starter"
(org.equinoxosgi.core.autostart). Why?

I'm examining sources of it and it's quite simple, but why it necessary
to develop something new? And why this book say nothing about simple and
update configurators?

=== My overall questions ===
What is configurator conceptually?
What is difference between update and simple configurator?
Are there more then these two configurators?

Thank you so much for any clarification!

Previous Topic:Import-Package necessary for org.xml.sax?
Next Topic:p2.inf addRepository with archived repo?
Goto Forum:

Current Time: Wed Oct 27 14:09:24 GMT 2021

Powered by FUDForum. Page generated in 0.01524 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top