Scheduled activation with workflows

 

 Activation of a page at a scheduled date/time is available through “Activate Later” feature provided OTB in AEM 5.6.  The way activate later works is by executing an OTB workflow called “schedule_activation“, which waits for activation until the time is reached. This is different from the way Page On/Off time based scheduling works, which activates the page immediately […]

Read More

OSGI Services without annotation

 

 [code language=”java”] BundleContext bundleContext = FrameworkUtil.getBundle(YourClass.class).getBundleContext(); //alternate to @Reference private ResourceResolverFactory resolverFactory;ServiceReference factoryRef = bundleContext.getServiceReference(ResourceResolverFactory.class.getName()); resolverFactory = (ResourceResolverFactory) bundleContext.getService(factoryRef); //alternate to @Reference private CustomPageManager customPageManager ServiceReference articleRef = bundleContext.getServiceReference(CustomPageManager.class.getName()); customPageManager = (CustomPageManager.) bundleContext.getService(articleRef); [/code]

Read More

Can you host a SOAP webservice on CQ

 

 We recently had a requirement to host a SOAP web service on CQ. There are few examples around on consuming a SOAP but couldn’t find any on hosting one.  Looks like its an unexplored territory based on the response on the Adobe forumhttp://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__rvqm-hi_i_have_arequ.html

Read More

Maven Archetype for CQ multi-module maven project

 

 multimodule-content-package-archetype plugin usage example: [code language=”java”] mvn archetype:generate -DarchetypeRepository=http://repo.adobe.com/nexus/content/groups/public/ -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.2 -DgroupId=com.company.project.cqcommons -DartifactId=cqcommons -Dversion=1.0-SNAPSHOT  -Dpackage=com.company.project.cqcommons -DappsFolderName=project -DartifactName=cqcommons -DcqVersion=5.6.1 -DpackageGroup=company [/code] Using multimodule-content-package-archetype creates the following folder structure [code] /bundle      //holds the osgi bundle java src .. pom.xml /content     //holds the jcr nodes .. pom.xml /pom.xml   //creates a zip package of osgi […]

Read More