Thank you all for the suggestion, I'll take a look into felix systemready

On Thu, Nov 22, 2018 at 2:21 PM Raymond Auge <raymond.a...@liferay.com>
wrote:

> ... or go look at the Apache Felix (new) systemready project.
>
> :)
>
> - Ray
>
> On Thu, Nov 22, 2018, 13:42 Cristiano via osgi-dev <osgi-dev@mail.osgi.org
> wrote:
>
>> Hi,
>>
>> Well, I think there are many possible solutions for that.
>>
>> In my opinion, the complicated thing is how the OSGi framework would know
>> what is necessary to it consider your application ready. Which bundles?
>> which services?
>>
>> A combination of the new OSGi Configurator + DeclarativeServices +
>> ConfigAdmin are a great option to achieve that.
>>
>> One of the possible approaches using these specs is to create a Bootstrap
>> DS component with configurationPolicy = ConfigurationPolicy.REQUIRE and
>> configurationPid="boot.pid", meaning that an instance of it will be created
>> and activated ONLY when a configuration were registered for "boot.pid".
>>
>> Then when you start the container you can instruct the Configurator to
>> activate your bootstrap component using the system property
>> "configurator.initial" pointing to a json configuration file containing all
>> information needed for this bootstrap component to recognize that your
>> application is ready (which bundles/services are required to be started).
>> You can also embed a configurator json inside bootstrap bundle instead.
>>
>> In the bootstrap component implementation you will need to setup a
>> BundleListener and/or ServiceListener to listen for installed bundles and
>> registered services and then at each occurrence to compare with those
>> provided in the json config.
>>
>> Once all required bundles/services were identified and their status
>> matched then your application can be considered ready.
>>
>> best regards,
>>
>> Cristiano
>>
>>
>> On 19/11/2018 18:16, Nhut Thai Le via osgi-dev wrote:
>>
>> Hello,
>>
>> We are using equinox as an osgi container to host our application which
>> comprise a large number of osgi bundles. Our concern at this point is that
>> when we start equinox, we don't know when all the bundles have been loaded
>> and the startup has finished. Does anyone have a suggestion?
>>
>> Thank you in advance
>>
>> Thai
>>
>>
>>
>> _______________________________________________
>> OSGi Developer Mail 
>> listosgi-...@mail.osgi.orghttps://mail.osgi.org/mailman/listinfo/osgi-dev
>>
>> _______________________________________________
>> OSGi Developer Mail List
>> osgi-dev@mail.osgi.org
>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
>

-- 
Castor Technologies Inc
460 rue St-Catherine St Ouest, Suite 613
Montréal, Québec H3B-1A7
(514) 360-7208 o
(514) 798-2044 f
n...@castortech.com
www.castortech.com

CONFIDENTIALITY NOTICE: The information contained in this e-mail is
confidential and may be proprietary information intended only for the use
of the individual or entity to whom it is addressed. If the reader of this
message is not the intended recipient, you are hereby notified that any
viewing, dissemination, distribution, disclosure, copy or use of the
information contained in this e-mail message is strictly prohibited. If you
have received and/or are viewing this e-mail in error, please immediately
notify the sender by reply e-mail, and delete it from your system without
reading, forwarding, copying or saving in any manner. Thank you.
AVIS DE CONFIDENTIALITE: L’information contenue dans ce message est
confidentiel, peut être protégé par le secret professionnel et est réservé
à l'usage exclusif du destinataire. Toute autre personne est par les
présentes avisée qu'il lui est strictement interdit de diffuser, distribuer
ou reproduire ce message. Si vous avez reçu cette communication par erreur,
veuillez la détruire immédiatement et en aviser l'expéditeur. Merci.
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to