Application specific properties for different environments | Community
Skip to main content
viren_pushpanay
Level 2
October 16, 2015
Solved

Application specific properties for different environments

  • October 16, 2015
  • 3 replies
  • 1065 views

Hi,

I need to have a few properties that are application specific and different for to each environment. I currently maintain the properties as a java properties file but feel that using runmode configuration is the way to go. I have found a few articles that have described how to set OSGI configuration values based on the run mode. Please point me to any article or code that will help me.

Thank you

Viren.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

Use config admin to access osgi properties.

 http://felix.apache.org/documentation/subprojects/apache-felix-config-admin.html

3 replies

Sham_HC
Level 10
October 16, 2015
viren_pushpanay
Level 2
October 16, 2015

Thanks for the reply. What I want is how to access properties, just as you would when using Java property files. 

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015