On 6/8/11 11:20, Felix Meschberger wrote:
Hi,

Am Mittwoch, den 08.06.2011, 17:12 +0200 schrieb Eugen Reiswich:
Hi folks,

I need to restart an OSGi application programmatically in Java. How can I do 
this?
AFAICT the "official" way is to call Bundle.update() on the system
bundle.

True.

BUT: This requires support from the framework launcher.

Not entirely true.

If you want to simply restart the framework, then calling update() on the system bundle would be sufficient. However, if you want to restart the JVM (e.g., to change what's on the boot class path) then you need help from the launcher.

-> richard

For example the Apache Sling Launchpad supports launching the Apache
Felix framework in this way. I would assume the Eclipse launcher does
the same for eclipse.

Regards
Felix

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to