Posts

Showing posts from September, 2017

Disable OSGI Components & Bundles as part of Application Configuration

Image
ACS AEM Commons OSGI Bundle and Component Disabler config allows to shut-down OSGI Components and Services by configuration. This feature allows OSGI Bundles and Components to be disabled as part of application configuration and these can be well managed for different environments using run modes config. OSGI Component Disabler: Define a sling:OsgiConfig under project config node: Ex:  /apps/poc/config/com.adobe.acs.commons.util.impl.ComponentDisabler <?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling=" http://sling.apache.org/jcr/sling/1.0 " xmlns:cq=" http://www.day.com/jcr/cq/1.0 " xmlns:jcr=" http://www.jcp.org/jcr/1.0 " xmlns:nt=" http://www.jcp.org/jcr/nt/1.0 " jcr:primaryType="sling:OsgiConfig" components="[pid1,pid2]" /> Snapshots below for reference: Components would be an array of the OSGI component PIDs to disable. CRX and OSGI view of component