Basic CQ5 code examples

– Feike Visser, Technical Architect @Adobe

In this blogpost I will go through some sample code that you can use in your components, all samples are available out of the box.

So there is no need to write custom code in OSGi bundles for these samples.

Make sure you have this line at the beginning of your component:

This global.jsp defines a set of global taglibs and makes a number of objects available that you can use via.


Read the complete post at the Experience Delivers blog.

Midnight at the lost and found

- Sensei Martin

Have you worked out that TAR Optimiser does not run at midnight? Normally, the OOTB default for running the TAR optimiser is 2am - 5am. This can be changed in the repository.xml/workspace.xml files. But, if you specify a start time of 00:00 it won't run. I'm sure I've posted this elsewhere but just to re-iterate you can make the TAR optimiser run faster & do more work by reducing the optimizeSleep parameter. We've managed to get away with 0.25 without any noticeable performance impact to the live servers (CQ 5.3).


This tip was originally posted at the My Day CQ Blog.

Viewing CQ server logs for a system hosted on Cloud Manager

- Samartha Vashishtha

To understand how you can view logs for a CQ Cloud Manager authoring server, look no further than this useful forum topic.

For more top issues and FAQ related to Adobe CQ Cloud Manager, see this documentation article.


Read the original post at The Doc Fox.

CQ5 – Command Line Admin

- Jochen Toppe

It’s so rare that I post here, it’s almost criminal. While researching how to best automate cloud-based installations of CQ5, I ran across these sweet command line tools to change passwords and setup replication agents. I figured they’d be worth sharin 8-)

They’re right here on github.


Read the original post at Jochen Toppe's blog.

Cloud Manager: How are Pause and Stop operations different?

- Samartha Vashishtha

When you pause a cloud, the cloud provider doesn’t charge for CPU cycles anymore. However, you are still charged for the allocated storage (for example, Amazon EBS volumes). Paused clouds are displayed in the Clouds dashboard with a yellow status.

However, when you stop a cloud, no memory, EBS storage, or instances remain allocated to it anymore. However, online backups for the stopped cloud are still retained and can be restored. The cloud provider continues to charge for the saved online backups. Stopped clouds are displayed in the Clouds dashboard with a red status.

For more FAQ related to Cloud Manager, refer to this documentation topic or consult this forum.


Read the original post at The Doc Fox.

CQ Cloud Manager is here!

- Samartha Vashishtha

Adobe has announced the general availability of CQ Cloud Manager, Software-as-a-Service (SaaS) that enables reduced time and costs for provisioning, managing, and metering Web Experience Management (WEM) solutions supporting digital marketing initiatives. Cloud Manager takes advantage of cloud computing technology, such the Amazon Web Services (AWS) public cloud, to start up CQ clusters quickly and consistently.

Using CQ Cloud Manager, Digital Marketing organizations can provision and deploy instances of their Web environment without having to procure hardware or pay large upfront costs. This ease of provisioning allows enterprises to rapidly engage customers, drive market shares, and focus on innovation.

The infographic below captures the overall CQ Cloud Manager framework:


To know more about Cloud Manager or to learn how to use it, refer to the documentation.


Read the original post at The Doc Fox.

Using JSONWriter objects to display Adobe CQ OSGi data

- Scott Macdonald

You can create an instance to invoke Adobe CQ OSGi bundle operations and display data within a JSP. A JSONWriter instance lets you define value and key methods to retrieve data. You can create an Adobe CQ component that uses a JSONWriter instance to submit data to an OSGi bundle operation and get back the results. You can then display the results in a JSP. That is, you can dynamically display data based on user input.

For example, consider the OSGi bundle that uses web services to return weather information. (For information about this OSGi bundle, see

Note: The OSGi bundle that returns weather data uses web services to expose various operations that return weather data. To follow along with this development article, you must create the weather OSGi bundle by following that article.



Read the complete post at Scott's Digital Community.

Logging Activates, Deactivates and Deletes

- Sensei Martin

To keep a log of who has activated or deactivated a page, add this to your logging :-

Log Level: Debug




Read the complete post at My Day CQ Blog.

Creating an Adobe CQ web application that uses MySQL

- Scott Macdonald

You can create an Adobe CQ web application that performs database operations on a relational database. For example, you can create an Adobe CQ web application that retrieves data from MySQL and displays the data in a JSP. The following illustration shows data being retrieved from a relational database and displayed in a JSP.

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).

The OSGi component that is created in this development article contains Java JDBC application logic that retrieves data from MySQL. (This OSGi component corresponds to the JDBC Java code shown in the previous illustration.) To keep this article simple, the MySQL database is named bank and contains a single table named user. The user table contains two fields named id and name. This development article guides you through how to create an Adobe CQ application that displays data located in the user table in a JSP.


Read the complete blog post at Scott's Digital Community.

CQ Developer Tricks

- Feike Visser

While working with Adobe CQ5 every now and then you discover some new tricks or options, here the list that I use daily:

Remove #cf/

Don’t want to see/wait for the content-finder while refereshing pages, just remove #cf/ in your url.


Shows you all details of the components used on your page


Runs Firebug Lite inside your browser


This parameter sets your WcmMode in the specified mode, makes testing for a particular WcmMode easier .



Read the complete blog post at the Experience Delivers blog.