Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Querying Adobe Experience Manager 6 data using the Sling getServiceResourceResolver method

Avatar

Level 10

Discusses how to create an Adobe Experience Manager (AEM) 6 application that queries data from the AEM JCR. This article creates an OSGi bundle that uses the JCR Query API to query and filter data. In addition, discusses how to invoke an OSGi bundle operation from the client web page.

This article uses the Sling method named getServiceResourceResolverto obtain a Session instance. This method replaces the use of thegetAdministrativeResourceResolver method, which is deprecated in AEM 6. It also provides details about using the Apache Sling User Mapper service. See: 

Querying Adobe Experience Manager 6 data using the Sling getServiceResourceResolver method 

0 Replies