-
Create a custom JCR event
In this session, we will see how to create a custom event and manage it. A custom event helps you to manage a specific activity happened on an AEM instance. For example, you want to send an e-mail to an editor as soon as an AEM page is created by a content creator; so that the editor…
-
Search in AEM repository
In the last session, we have seen how to add a property to a JCR node. We primarily created a resourceResolver object and created a resource using the path to the node where we wanted to set the property. Converted the resource into a Node using the adptTo() method. And, then used the setProperty() method to set the…
-
Update a node property using an AEM bundle
In the previous session, we have seen how to obtain a Resource. We later, translated the Resource into a Page object, and then programmatically obtained its title. We will see one more example. Here, using an AEM bundle, we will write a property to the Page we created. In this case too, we need to use a Resource object…
-
Access a resource property using an AEM bundle
In this session, we will learn about how to access resources using bundles deployed in the Felix console. After all, for Sling, everything is a resource. We will update the bundle we developed with a method that accesses a node and prints its title. Though it sounds very simple, we will learn about a very important…
-
Manage Sling requests using Java Servlets
In this session, we will see how to manage Sling requests using Java Servlets. Servlets are programs that run on a Web server and act as a middle layer between a request and a response. You can deploy Servlets in the Felix console and use them for managing the request from clients. An example: you need to print…
-
Create configurable parameters in an OSGi component
In this session, you will see how to configure values for various parameters in an OSGi bundle and obtain the same for further processing. We will also learn about ComponentContext object that helps to interact with a component. (As usual, it’s a continuation of the previous session. Obtain the latest package and project from GitHub.)…
-
Enable logging for a bundle
In this session, we will see how to enable logging for a bundle. We will later create a logger configuration in Felix console and will specify a file to write the logs. Enabling logging in a bundle helps you a lot while debugging. We will use Simple Logging Facade for Java (SLF4J). It’s an abstraction of various…
-
Convert an AEM Maven project to an Eclipse-based project
In the previous session, we created an AEM project based on an archetype. We explored the project, deployed it into the Felix console, and then accessed the service it exposed. In this session, we will convert the project into an Eclipse project. So that we can import the project into Eclipse. And, later use Eclipse as an IDE for…
-
Create a bundle for AEM using Maven
In this session, you will learn about developing and deploying bundles for AEM development. (Following is the transcript of the video above. See the video to get the right context. For sample files, visit GitHub.) Bundles help to modularize Java development using the Open Source Gateway Initiative (OSGi) framework. A bundle is essentially a Jar…
-
Download AEM company training complete package
Download the complete package from my GitHub account. Package name is aem-company-site-1.0.zip. I thought it will help you to learn quickly. Have a great 2016!!