Hello,
Could any one guide me to read OSGI configuration in java.
I have created OSGI:config under app\config folder and name is 'xx.yy.zz', I have add property as "myipaddress = XXXXX"
Now I try to get the this config in the servlet.
I tried like below
@Reference
private ConfigurationAdmin configurationAdmin;
Configuration config = configurationAdmin.getConfiguration("xx.yy.zz"); LINE 01
But I got NullpointerException on LINE 01.
Kindly guide me how to overcome this issue..
If my way of fetching the value is wrong. Suggest the steps to fetch OSGI.config property in java
Many thanks
Nanda