How to stop cq bundles programmatically?
Hi,
CQ has its own bundles like com.day.crx.crxde-support . I would like stop this bundle programmatically. Please suggest. Your comments are welcome.
Thanks,
Arya
Hi,
CQ has its own bundles like com.day.crx.crxde-support . I would like stop this bundle programmatically. Please suggest. Your comments are welcome.
Thanks,
Arya
Hi Arya,
Curl is already build in you can invoke it by accessing particular url.e.g. http://balawcm.wordpress.com/2013/02/13/curl-it-out-adobe-cq5-curl-commands-and-usage/
Here are two examples of simple usage:
1) We stop the bundle that is currently being activated
@Activate
protected void activate(ComponentContext componentContext) throws BundleException {
componentContext.getBundleContext().getBundle().stop();
}
2) We stop some other bundle
@Activate
protected void activate(ComponentContext componentContext) throws BundleException {
Bundle[] bundles = componentContext.getBundleContext().getBundles();
//find your bundle and assign it to int found;
bundles[found].stop();
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.