Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » How to shutdown OSGi?
How to shutdown OSGi? [message #115943] Wed, 13 August 2008 08:11 Go to next message
Eclipse UserFriend
Originally posted by: cui423.web.de

Hi.

I'm looking for a possibility to shutdown the equinox osgi framework out
of the program. System.exit() is not what I'm looking for, because it does
not regulary uninstall all installed bundles etc.
I'm looking for an equivalent to the "close" command of the equinox
console.

Something like the following would be fine:

bundleContext.getPlatform().shutdown();

cui.
Re: How to shutdown OSGi? [message #115993 is a reply to message #115943] Wed, 13 August 2008 14:51 Go to previous message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
You can do this by getting the system bundle and stopping it. If you're
controlling the framework from outside call EclipseStarter.shutdown

HTH
-Simon

"cui23" <cui423@web.de> wrote in message
news:bf7e336b866610893df019e3de8550b0$1@www.eclipse.org...
> Hi.
>
> I'm looking for a possibility to shutdown the equinox osgi framework out
> of the program. System.exit() is not what I'm looking for, because it does
> not regulary uninstall all installed bundles etc.
> I'm looking for an equivalent to the "close" command of the equinox
> console.
>
> Something like the following would be fine:
>
> bundleContext.getPlatform().shutdown();
>
> cui.
>
Previous Topic:patch behavior
Next Topic:Really Basic Equinox Problem
Goto Forum:
  


Current Time: Fri Apr 26 18:42:00 GMT 2024

Powered by FUDForum. Page generated in 0.02591 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top