Hi All,
As per requirement for the migration of AEM 6.2 to AEM 6.5 cloud service. I have to read the OSGi configuration values. I tried this link https://helpx.adobe.com/experience-manager/using/osgi_config63.html.
I was able to create all the specified java files and the build was successful as well.
At the component level, I was trying to fetch the values like below code snippet shows, but could not get the values. Looking for the solution for this to achieve. Below are trails which I tried out.
Try 1:
<sly data-sly-use.nav="com.abc.core.use.HelloWorldModel" data-sly-unwrap>In the Java call sly tag</sly><br>
<h1>${nav.getMessage}</h1>
Try 2:
<sly data-sly-use.nav="com.abc.core.use.HelloWorldModel" data-sly-unwrap>In the Java call sly tag</sly><br>
<h1>${nav.getMessage}</h1>
<sly data-sly-test.tryvalue=${nav.getMessage}>
<h2>Value: ${tryvalue}</h2>
</sly>