I'm trying to run multiple Equinox instances within a plain Java application.
Currently, I am starting one instance of Equinox in my application using:
EclipseStarter.startup(new String[]{"-console", "-dev", "bin"}, null);
However, for a new use case, which requires a lot of bundle starting, stopping and updating, this approach is no longer sufficient.
Instead, I would like to be able to hold two frameworks with different installed bundles at the same time and swap between them if neccessary. In some cases, I would still need to stop and re-start some bundles, but such an approach would deal with most of the pain.
Any idea how I could setup such an approach???
Many thanks in advance for your help!
Sebastian
You should not use EclipseStarter. Use the OSGi launching API to create multiple instances of the framework.