osgi - Blueprint property-placeholder provider -


in osgi blueprint can params property-placeholder <cm:property-placeholder persistent-id="id" update-strategy="reload"/>. but, these params loaded .cfg. need load params database, can set params provider property-placeholder?

the property-placeholder cm:property-placeholder can feed properties config admin. there no simple soltuion configuring xml.

there 3 ways achieve this:

  1. you can write configadmin backend retrieves configs database.
  2. you can write own blueprint namespace implements element property-placeholder element , retrieves configs database.
  3. a simpler solution install bundle in runtime reads database , uses configurationadmin service create configs according database contents.

so opt 3rd solution. side effect of once have written configs there no outage if database goes down.


Comments

Popular posts from this blog

javascript - Hide toolbar of pdf file opened inside iframe using firefox -

Ansible - ERROR! the field 'hosts' is required but was not set -

Copy range with conditional formatting -