[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.equinox] programmatically add new bundles?

Hello,

in my usecase I have server types where each one is composed of it's own collection of jars and I would like to be able to start multiple instances of the same server type simultaneously within Eclipse.
But:
a) I don't want the jars of one server type be visible to other server types and
b) I cannot guarantee that multiple instances of the same server type can work together within the same class loader as there might be some class state involved in one server instance that would influence the other server instance.


The first thought was to create a bundle per server type. But then I would need to programmatically add new bundles to start new servers. E.g. by copying the server type bundle, adding an id to the SymbolicName attribute, and starting it.
Isn't there a more elegant way of reaching the same goal? An instance of an OSGi Service doesn't have an own classloader, it lives within a bundle that is already there right?
Any hints are much appreciated!


Best,

Sandro