This development article was written due to a request from the AEM community. It discusses how to create your first Adobe Experience Manager (AEM) custom service by using Maven and an Adobe Archetype project.
In some business use cases, you create an OSGi bundle when creating an
Adobe Experience Manager (AEM) application. Although there are different
ways to create an OSGi bundle, a recommended way is to use Maven and
the Adobe Maven Archetype. This development article walks you through
creating a basic OSGi bundle that contains a simple service named KeyService.
All this service does is accept an input value and sets a key value. It
also exposes a method that returns the key value and the value can be
displayed within an AEM web page.
To read this development article, click, http://helpx.adobe.com/experience-manager/using/first-osgi.html.