Skip to main content



      Home
Home » Eclipse Projects » Equinox » How to shutdown OSGi?
How to shutdown OSGi? [message #115943] Wed, 13 August 2008 04: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 10:51 Go to previous message
Eclipse UserFriend
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: Sat May 31 05:05:00 EDT 2025

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

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

Back to the top