Wednesday, March 20, 2019

Disable Dispatcher Cache for specific Pages

In order to disable caching in the dispatcher, add the header "Dispatcher: no-cache", i.e. in your JSP:

<%
  response.setHeader("Dispatcher", "no-cache");
%>

Note: This feature is only available in Dispatcher release 4.0.0 (and higher)


References:


Tuesday, March 19, 2019

Sling Models vs WCMUsePojo


WCMUsePojo
Sling Models
Pure POJO’s(Plain Old Java Objects)
Annotation driven POJO’s. The class uses @Model annotation & fields use the @Inject annotation

No default resource mapping
Sling Models are mapped automatically with Sling Objects (resource, request objects..) and allow us to access jcr node property values directly into java classes.

For Example:
@Inject @Named("sling:resourceType")
protected String resourceType;

Always extends from WCMUsePojo class
Can be standalone class with @Model annotation
Supports only Classes
Support both classes and interfaces.
Overrides activate() method
init() method is invoked in @PostConstruct annotation
@Reference to reference an OSGi service
@Inject or @OSGiService annotation used
No Exporter available by default
@Exporter annotation can serialize the model and export it as a JSON file with Jackson exporter

References:

Thursday, February 21, 2019

Single Page Application support in AEM 6.4

AEM now natively supports Angular and REACT for single page application development. The AEM 6.4 release notes mentions the following:

Preview and edit single-page applications built on your favorite framework. This allows marketing and developer authors to collaborate and edit content seamlessly, regardless of the authoring framework used for creating SPAs.”

References:

  1. SPA introduction & Walkthrough - https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/spa-walkthrough.html
  2. Hello World tutorial - https://helpx.adobe.com/experience-manager/kt/sites/using/spa-editor-helloworld-tutorial-use.html
  3. Getting started with SPA in AEM - https://helpx.adobe.com/in/experience-manager/6-4/sites/developing/using/spa-getting-started.html
  4. Maven Archetype - https://github.com/adobe/aem-spa-project-archetype

Friday, February 15, 2019

Adobe AEM 6 Architect Certification (9A0-385) Preparation


Adobe Partner Learner JourneyThis Learner Journey guide is for Adobe Partners. It provides a recommended learning path to certification which includes on-demand digital classroom options as well as instructor sessions which can be virtual or live, onsite or offsite. Most learning paths include Challenges which are scenario-based exercises designed to allow demonstration of a skill and hands-on practice. The learning paths provide guidance for on-the-job experience to ensure success and prepare for Adobe Certified Expert (ACE) Certification. 


Prep Up for AEM 6 Architect ExamThis post has a high-level overview of topics that will be covered in the exam with references to other resources and videos for detailed insights



Solution Partner Portal: "AEM: Foundations for Architect" is a really useful course for Adobe Solution Partners who want to take up the AEM Architect exam



Flash Cards (Thanks to whoever created them):
https://www.brainscape.com/flashcards/aem-60-architect-4537251/packs/5686313

Good knowledge of Source control, CI & CD tools:

Jenkins: https://jenkins.io/
Git: https://github.com/

Integration with Adobe Marketing Cloud, AEM Forms & Scene7:

Integrating with Adobe Target: https://helpx.adobe.com/experience-manager/6-3/sites/administering/using/target.html
Scene7: https://helpx.adobe.com/experience-manager/6-3/sites/administering/using/scene7.html

AEM Deployment & Microkernels:
https://helpx.adobe.com/in/experience-manager/6-4/sites/deploying/using/recommended-deploys.html

AEM with MongoMK – How to configure replication

Generic eCommerce integration:
https://helpx.adobe.com/in/experience-manager/6-3/sites/developing/using/generic.html
https://docs.adobe.com/docs/en/aem/6-3/administer/ecommerce/concepts.html

Camera Raw images in AEM:
https://docs.adobe.com/docs/en/aem/6-1/administer/content/assets/camera-raw.html

Custom Styles for Rich Text Editor Component
https://docs.adobe.com/docs/en/aem/6-2/administer/operations/page-authoring/rich-text-editor.html

Blogs by users who have cleared the AEM 6 Architect exam:
http://suryakand-shinde.blogspot.com/2015/11/aem-architect-certification.html

Disclaimer: This article reflects my own preparation journey in taking up the exam.

Update(22/02): Cleared the AEM Architect certification