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:
- you can write configadmin backend retrieves configs database.
- you can write own blueprint namespace implements element property-placeholder element , retrieves configs database.
- 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
Post a Comment