Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Apache CXF webservices in Adobe CQ5

CQ5 and CXF

This is an example OSGi Bundle for Adobe CQ5. It calls the Stock Quote service using CXF.

Built using Maven 3 on JDK1.6. Developed against CQ5.4, works on CQ5.4 and CQ5.5. Heavily based on the article by Sean Steimer which in turn was based on the session by Pro!vision at .adaptTo() Berlin 2011.

Unlike the version they produced, this bundle doesn't depend on the dOSGi or other CXF bundles, nor does it need hacking the sling.bootdelegation to work. All requirements are either present in a stock copy of CQ5 or are private internal to the bundle.

Example Usage: 1.Install bundle

  1. Put this code in a component

<% cxf_example.api.CxfExampleService svc = sling.getService(cxf_example.api.CxfExampleService.class); %> svc = <%=svc.getSomething()%>

  1. put the component on a page and load it. You should see a line with a stock quote for AAPL.
Something went wrong with that request. Please try again.