Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » How to terminate Equinox after first error?
How to terminate Equinox after first error? [message #907928] Tue, 04 September 2012 06:00 Go to next message
Libor Jelinek is currently offline Libor Jelinek
Messages: 143
Registered: January 2012
Location: Prague, Czech Rep.
Senior Member

Hello!
I have app composed from multiple bundles. They (have to) rely on start
levels. When bundle in lower start level failed to start, Equinox
continues to with rest of bundles and it's obvious that higher bundles
will also fail since they depend on earlier started bundles.

It there any configuration option to terminate Equinox after
encountering first error?

Thanks
Libor
Re: How to terminate Equinox after first error? [message #907957 is a reply to message #907928] Tue, 04 September 2012 09:43 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas Watson
Messages: 426
Registered: July 2009
Senior Member
Unfortunately there is no such option. Equinox is behaving as documented by the OSGi core specification. You would have to have your own way of checking that the "system" is ready after the framework as been launched and terminate the framework yourself if you detected an error.

Tom.
Re: How to terminate Equinox after first error? [message #907973 is a reply to message #907928] Tue, 04 September 2012 09:44 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas Watson
Messages: 426
Registered: July 2009
Senior Member
Unfortunately there is no such option. Equinox is behaving as documented by the OSGi core specification. You would have to have your own way of checking that the "system" is ready after the framework as been launched and terminate the framework yourself if you detected an error.

Tom.
Re: How to terminate Equinox after first error? [message #909813 is a reply to message #907928] Fri, 07 September 2012 17:13 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal Rapicault
Messages: 290
Registered: July 2009
Location: Ottawa
Senior Member
What about listening to the log and stopping the bundle 0.
Re: How to terminate Equinox after first error? [message #910296 is a reply to message #909813] Sun, 09 September 2012 02:39 Go to previous message
Libor Jelinek is currently offline Libor Jelinek
Messages: 143
Registered: January 2012
Location: Prague, Czech Rep.
Senior Member

It's very nice idea and sounds easy to implement!

Thank you for inspiration, Pascal!
Libor

On 09/07/2012 11:13 PM, Pascal Rapicault wrote:
> What about listening to the log and stopping the bundle 0.
>
Previous Topic:Equivalent for "Optional plug-ins" checkbox of feature-based product
Next Topic:how to read a file in another plugin?
Goto Forum:
  


Current Time: Fri Aug 29 06:30:07 EDT 2014

Powered by FUDForum. Page generated in 1.02537 seconds