Should PDE cache startup state of bundles? [message #66600] |
Fri, 12 May 2006 08:33  |
Eclipse User |
|
|
|
Originally posted by: alex_blewitt.yahoo.com
I saw an odd issue this morning ... when starting up an Eclipse (RCP) application, a bundle is started manually with bundle.start() in the code (it's using services, so there's no specific dependency between the two). On the first run, this works fine, but on the second run it says that the bundle is already started. Cleaning the workspace doesn't seem to make any difference.
Exporting it as a product and running with a fresh standalone eclipse.exe doesn't exhibit this behaviour.
Should this be regarded as a bug in PDE? If so, I'll file a bug report about it ...
Alex.
|
|
|
|
|
|
Re: Should PDE cache startup state of bundles? [message #68091 is a reply to message #67998] |
Wed, 24 May 2006 16:17  |
Eclipse User |
|
|
|
Originally posted by: alex_blewitt.yahoo.com
Just for other readers ... for Eclispe 3.1, it's Eclipse-LazyStart. For 3.2+, it's Eclipse-AutoStart IIRC.
Secondly, this approach works when you've got a class dependency, but doesn't work when you've got a service dependency, which is where the example came from. In that case, you don't have a direct class dependency so you have to start it manually to bring the service on line (of course, when the declarative services stuff goes live, you can use that instead).
Still, good summary of the information for anyone else that needs to know.
Alex.
|
|
|
Powered by
FUDForum. Page generated in 0.26747 seconds