thx

> -----Ursprüngliche Nachricht-----
> Von: Felix Meschberger [mailto:fmesc...@adobe.com]
> Gesendet: Montag, 7. März 2011 07:51
> An: dev@sling.apache.org
> Betreff: Re: pendant to "load-on-startup"
> 
> Hi Clemens,
> 
> Am Montag, den 07.03.2011, 06:22 +0000 schrieb Clemens Wyss:
> > In my BundleActivator I register two servlets, where of one should be
> loaded/initialized before the other. In the web.xml there is the <load-on-
> startup>-tag. Is there a specific property that can be set?
> 
> There is no such thing, but ...
> 
> If you register your servlet directly with the OSGi Http Service it will be
> initialized immediately upon registration. So the first servlet registered 
> will be
> initialized first. The same holds for destroyal upon servlet unregistration.
> 
> As for registration of a servlet with Sling it is similar: When the servlet is
> registered as a service it is immediately initialized unless the Servlet 
> Resolver
> is not ready yet, in which case initialization is postponed but initialization
> order is maintained to be the order of service registration. Hence a servlet
> service registered first will be initialized first.
> 
> So basically, you have the initialization order vigor in place.
> 
> Regards
> Felix

Reply via email to