Scenario: The same configuration parameter is present under /libs/*/config and /apps/*/config and modified in both locations as well as via Felix console.
And during run-time somehow Felix console configuration is taking precedence. How? My understanding is /apps should take precedence. Any views.
You are correct. See http://docs.adobe.com/docs/en/cq/current/deploying/configuring_osgi.html#Configuration%20Details which states:
Are the config nodes run-mode specific? If a run-mode doesn't match, that could explain why the node under apps is not getting applied:
Also mentioned in the above doc, in case the changes were made when the system is running, then the following order of precedence applies:
This might explain why the config changes done in the OSGI console is being picked instead of the changes in your /apps.