Tracking of multiple services [message #98255] |
Tue, 25 September 2007 17:17 |
Eclipse User |
|
|
|
Originally posted by: lars.dont_spam.se
Hi,
The solution we are working on has a set of core services (logging,
config-handling etc) that must have been registered / started
prior to most of the other services. Each of the core services are contained
within their only bundle.
The quick approach was to make sure that the start order of the bundles was
set accordingly. But we want to explore the possibility
to make this dynamic, so ServiceTracker seams to be one way forward.
I was thinking of having one bundle that simply installs servicetracking for
each of the core services. When all services have been
registered this bundle registers and starts a semaphore service. All of our
other bundles will then only have to perform service tracking
of this semaphore service (since the precesens of the semaphore indicates
that all core services are registered).
Is this a good design or is there any better solution?
BR
Lars
|
|
|
|
Powered by
FUDForum. Page generated in 0.02919 seconds