Monday, 2 April 2012

Creating AEM OSGi bundles using CRXDE

You can create an OSGi bundle that can be used within the Adobe Digital Marketing Suite by using CDXDE. An OSGi bundle is essentially a Java module that contains application logic that meets your business requirements. An OSGi bundle lets you dynamically load, unload, configure, and control the Java module without restarting the server. CRXDE is the IDE that lets you develop applications for Adobe CQ (part of the Adobe Digital Marketing Suite).  

An OSGi bundle can use third-party JAR files. That is, classes located within a third-party JAR file can be used within an OSGi bundle. To demonstrate how to create an OSGi bindle that uses a third-party JAR file, this development article uses a third-party JAR file and EchoService.jar. This JAR file contains the following basic Java class named EchoService2

package com.adobe.myexample;

public class EchoService2 {
    
    public String sayHello(String val){
        
        return "Echo Service says: " +val ;
    }
}

Note: Before following along with this development article, install Adobe CQ 5.5 (or higher) and have it running. Also, ensure that you have CRXDE, which is the development environment. Finally create a JAR file named EchoService.jar and ensure that it contains the EchoService2 class shown above. 

To read this entire article, click this link: http://helpx.adobe.com/adobe-cq/using/creating-osgi-bundles-digital-marketing.html.

Note: This development article discusses how to develop an OSGi bunlde using CRXDE. There are other ways to create an OSGi bundle. For information, see http://scottsdigitalcommunity.blogspot.ca/2012/12/exploring-different-ways-in-which-you.html.




Adobe Digital Marketing Community


Join the Adobe Digital Marketing Community. Start by clicking this banner

About the Author

I (Scott Macdonald) am a Senior Digital Marketing Community Manager at Adobe Systems with over 16 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more CQ or other Adobe Digital Marketing end to end articles like this, then leave a comment and let me know what content you would like to see.

Linked Inhttp://www.linkedin.com/in/scottmacdonald2010
TwitterFollow the Digital Marketing Customer Care team on Twitter @AdobeMktgCare.



9 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. The main product docs for CQ 5.5 can be found here:

    http://dev.day.com/docs/en/cq/current.html

    There are some videos on the Day doc page.

    Thanks for your comment.

    ReplyDelete
  4. You can also find CQ videos here: https://www.day.com/discover

    ReplyDelete
  5. i need how to create custom xtype in Adobe CQ from scratch.
    i have gone through the Dev.day site for this But unable to understand.
    Could u Please send me the complete process.

    ReplyDelete
  6. I will investigate this process and create an entry here for you.

    ReplyDelete
  7. Where I can download the CQ 5 trail?

    ReplyDelete
  8. Hi Scott,
    I have started using AEM 6.0, one of customer requirement is to persist the user generated data in MongoMK, now how to approach that I can't find any good document on this topic, although adobe documentation is there but it is not enough.
    Can you please share something on these topic.
    Thanks
    Indranil

    ReplyDelete