How to read different environment Config properties in you java code ?
Hi All,
I have been following Adobe Experience Manager Help | Reading Adobe Experience Manager OSGi Configuration Values for reading properties in my code.
When i runt he sample provided it runs fine and gives correct output but when i integrate the same nodes and classes in my project, my service doesn't get registered on activation of bundle.
Since this sample uses the deprecated felix annotations i tried modifying it to current standards , now my service is registers but the activate method is never called.
I also saw one acs sample code on github SampleOsgiR6AnnotationsImpl.java but unable to understands if it is related to my requirement, since i dont see any connection with osgiConfig node.
What i need is able to read properties based on different run modes in my java file on bundle activation.
Can anyone please suggest for the same.