tags:

views:

145

answers:

1

Hello All,

I am building an OSGi application and need to create an Eclipse-like OSGi application launcher.

For those who do not know, when an OSGi application is run through Eclipse's OSGi framework, Equinox launches and automatically manages the order of bundles being started and stopped. From what I have experienced so far, it seems to be very efficient in what it does.

I want a similar piece of software to be able to create powerful distributable OSGi applications that can take a dynamic group of bundles, and without rewriting any code, start the application correctly and in the right bundle order.

I am curious to know how Eclipse achieves this result efficiently and how I can achieve the same result.

Thank you,

Steve

+1  A: 

You have two options:
1) use pax runner
2) Use eclipse bundle witch serves as starter ( i believe it's org.eclipse.equinox.launcher)

Edit:
1*)For equinox options starter see this link paragraph Configurations and all that... BTW I've been wrong it's not launcher bundle it's common and update bundles.
2*)Fox pax runner example see this screen cast

Nikolay Ivanov
Can you please shortly describe how the automatic bundle ordering works in both of these options?
Pavol Juhos
Yes, a short description of how this works would be very helpful.
stjowa
See my edit about further explanation
Nikolay Ivanov