Skip to main content


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 10:00 Go to next message
Libor Jelinek is currently offline Libor JelinekFriend
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 13:43 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
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 13:44 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
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 21:13 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
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 06:39 Go to previous message
Libor Jelinek is currently offline Libor JelinekFriend
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 Apr 19 14:55:35 GMT 2024

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

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

Back to the top