making a osgi component inactive | Community
Skip to main content
Level 4
October 16, 2015
Solved

making a osgi component inactive

  • October 16, 2015
  • 4 replies
  • 1312 views

Hi,

is it possible to disable a component inside OSGI via an xml file similiar to the OSGIconfig. I want to disable com.adobe.granite.comments.internal.CommentReplicationContentFilterFactory.

Thanks

Chris 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JustinEd3

Hi Chris,

In short no - there's no *universal* configuration-based way to stop a component. As Davide notes, some components allow you to effectively disable them using configuration, but for components which do not have such configuration, you need to stop the component manually via the web console or through code (using the ScrService).

Justin

4 replies

JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi Chris,

In short no - there's no *universal* configuration-based way to stop a component. As Davide notes, some components allow you to effectively disable them using configuration, but for components which do not have such configuration, you need to stop the component manually via the web console or through code (using the ScrService).

Justin

smacdonald2008
Level 10
October 16, 2015

Can you please provide more details on what you want to do? It sounds like you want to dynamically disable an active OSGi bundle using XML or an API.  

chrisu168Author
Level 4
October 16, 2015

You know how you can create a xml file eg

com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl.xml

and you can then place this inside your package and when this package is installed inside osgi the configurations are all set. Is there a similar method to disable the CommentReplicationContentFilterFactory component.

Chris

Adobe Employee
October 16, 2015

That depends if the implementation of the service within a bundle allows you to disable it or not.

You could potentially stop via the felix console either the bundle or the OSGi component but I don't know what it could be the CQ behavior if you disable the CommentsReplication.