Skip to main content
Level 2
Nov 12, 2018 6:35 AM UTC
Solved

Enable/Disable CRXDE LITE using Workflow

Hi,

         How to enable/disable CRXDE lite in production environment using a workflow or an servlet?

Thanks & Regards,

Ashwini

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Peter_Puzanovs
Peter_PuzanovsAccepted solution
Community Advisor
Nov 12, 2018 8:32 AM UTC

Dear Ashwini,

BundleContext[0] can get you your bundles[1] and individual bundles can be started via start() method.

[0]https://osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html

[1] https://osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html

P.S. you can get BundleContext via:

@Activate
public void activate(BundleContext context) {
  
// ...
}

Regards,

Peter

3 replies

arunpatidar
Community Advisor
Community Advisor
Nov 12, 2018 7:11 AM UTC

Hi,

Please check https://helpx.adobe.com/in/experience-manager/6-3/sites/administering/using/enabling-crxde-lite.html

In above article CRXDE Lite can be disabled via curl command, similarly you can use Java to make a post request to disable particular component.

Translate
Arun Patidar
Level 2
Nov 12, 2018 8:25 AM UTC

Thanks for the response.

How to enable the bundle programmatically?

Translate
Peter_Puzanovs
Community Advisor
Peter_PuzanovsCommunity AdvisorAccepted solution
Community Advisor
Nov 12, 2018 8:32 AM UTC

Dear Ashwini,

BundleContext[0] can get you your bundles[1] and individual bundles can be started via start() method.

[0]https://osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html

[1] https://osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html

P.S. you can get BundleContext via:

@Activate
public void activate(BundleContext context) {
  
// ...
}

Regards,

Peter

Translate