Advice for Server-Side Equinox [message #99533] |
Wed, 10 October 2007 17:41 |
Eclipse User |
|
|
|
Originally posted by: lars.nowhere.se
Hi all,
We have created a server solution with a bunch of bundles (that registers n
services).
Since this is a server solution there are a set-of s"core" ervices that
always needs to be started prior to others.
We have used the ServiceTrackers principle to make other services wait that
the core services are there.
In general terms we are "missing" a server start-up app that installs these
core services and then start the other bundles.
Or are there any other smarter approach for this?
BR
Lars
|
|
|
|
Re: Advice for Server-Side Equinox [message #99569 is a reply to message #99533] |
Thu, 11 October 2007 10:32 |
Eclipse User |
|
|
|
Originally posted by: stepper.sympedia.de
Lars,
If you need a coarser grained solution to programmatically kick services
from multiple bundles you could implement an IApplication and contribute
it like:
<extension
id="app"
point="org.eclipse.core.runtime.applications"
name="CDOServer">
<application cardinality="1" thread="main">
<run
class=" org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion "/>
</application>
</extension>
I have an example of an abstract application that saves a bit of glue code:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.net4j/plugins/org.eclipse.net4j.util/src/org/ec lipse/net4j/util/om/OSGiApplication.java?revision=1.4&ro ot=Modeling_Project&view=markup
Cheers
/Eike
Lars schrieb:
> Hi all,
>
> We have created a server solution with a bunch of bundles (that registers n
> services).
> Since this is a server solution there are a set-of s"core" ervices that
> always needs to be started prior to others.
> We have used the ServiceTrackers principle to make other services wait that
> the core services are there.
>
> In general terms we are "missing" a server start-up app that installs these
> core services and then start the other bundles.
> Or are there any other smarter approach for this?
>
> BR
>
> Lars
>
>
>
>
>
>
>
>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.01803 seconds