Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Advice for Server-Side Equinox
Advice for Server-Side Equinox [message #99533] Wed, 10 October 2007 17:41 Go to next message
Eclipse UserFriend
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 #99558 is a reply to message #99533] Thu, 11 October 2007 08:31 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Lars wrote:
> 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?

Are you using the servlet bridge or Equinox as the server? For Equinox
as the server you can configure the startup order of bundles in the
config.ini.

See here for details:
http://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01185.ht ml

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Advice for Server-Side Equinox [message #99569 is a reply to message #99533] Thu, 11 October 2007 10:32 Go to previous message
Eclipse UserFriend
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
>
>
>
>
>
>
>
>
>
>
>
>
Previous Topic:Output stopped on Windows XP
Next Topic:PermGen errors: How can I enable JMX and/or jvmstat ?
Goto Forum:
  


Current Time: Wed Oct 17 20:43:49 GMT 2018

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

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

Back to the top