John Smith
John Smith

Reputation: 233

Configuration admin and declarative osgi properties

Is it possible to be managed OSGI bundle properties with Configuration Admin? Which is the best practise about that?

Upvotes: 2

Views: 777

Answers (2)

Christian Schneider
Christian Schneider

Reputation: 19606

It is absolutely possible. I typically using blueprint together with config admin service. It will give you properties like in spring with the PropertyPlaceholderConfigurer. See: http://www.liquid-reality.de/x/G4Be for an example.

Upvotes: 0

Neil Bartlett
Neil Bartlett

Reputation: 23948

Yes, that is the purpose of Config Admin.

If you are looking for general documentation, I suggest the OSGi Specification or the book "OSGi in Action" (Richard Hall et al).

If you have already tried something and failed, please post details of what you did and what went wrong.

Upvotes: 2

Related Questions