Problem with configurator bundle discovery [message #89547] |
Tue, 05 June 2007 04:53  |
Eclipse User |
|
|
|
Hi,
I tried to use org.eclipse.update.configurator to automatically
discover and launch the bundles that are present in the equinox root
folder as is specified in equinox site.
The config.ini is the following:
osgi.bundles=org.eclipse.equinox.common@2:start,
org.eclipse.update.configurator@3:start
But when I stat equinox:
java -jar org.eclipse.osgi_3.2.2.R32x_v20070118.jar -console
and if I do:
osgi> ss
I only have three bundles:
0 START system.bundle
1 START org.eclipse.equinox.comon
2 START org.eclipse.update.configurator
What I'm I missing? I've lots of bundles in the root folder along
equinox jar.
Thanks!
|
|
|
|
|
Re: Problem with configurator bundle discovery [message #89802 is a reply to message #89788] |
Wed, 06 June 2007 07:58   |
Eclipse User |
|
|
|
Pedro,
Yes, you are right, it seemsthe only way to auto start a bundle is by
declaring it in the config.ini file. I thought you could play games
with start levels but that doesn't seem to hold true per my own testing
and this post on the equinox dev list
( http://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01185.ht ml).
That being said, what I've found that works with this auto discovery
setup is adding another option to the config.ini which explicitly
declares the bundle I need started. So for example I need the registry
started, my config.ini looks like this:
osgi.bundles=\
org.eclipse.equinox.common_3.2.0.v20060603.jar@2:start,\
org.eclipse.update.configurator_3.2.2.R32x_v20070111.jar@3:start,\
plugins/org.eclipse.equinox.registry_3.2.1.R32x_v20060814.jar@4:start
Which forces the registry to start after common & configurator have
already started (and I assume after configurator has installed all the
bundles located in plugins/).
I'm not sure what misinformation you found on the site, but the
quickstart guide located at
http://www.eclipse.org/equinox/documents/quickstart.php helped me get
some simple (if not completely contrived) examples working. It also
covers this issue by stating:
"When the Update configurator bundle starts, it automatically discovers
and installs all the bundles in the plugins directory that is beside the
Equinox JAR. Note that the configurator does not automatically start
these bundles."
-Brett
|
|
|
|
|
|
Re: Problem with configurator bundle discovery [message #89929 is a reply to message #89899] |
Wed, 06 June 2007 16:16  |
Eclipse User |
|
|
|
Oh, sure, that makes sense, I guess I didn't realize we were talking
about eclipse proper, I had my head in the raw equinox world where there
is no extension registry unless specifically loaded and started.
I was confused, sorry if I caused any other confusion.
-Brett
|
|
|
Powered by
FUDForum. Page generated in 0.03821 seconds