use of org.wso2.carbon.application.deployer.bpel.BPELAppDeployer in project carbon-business-process by wso2.
the class BPELAppDeployerDSComponent method activate.
protected void activate(ComponentContext ctxt) {
try {
// register bpel deployer as an OSGi Service
BPELAppDeployer bpelDeployer = new BPELAppDeployer();
appHandlerRegistration = ctxt.getBundleContext().registerService(AppDeploymentHandler.class.getName(), bpelDeployer, null);
// read required-features.xml
URL reqFeaturesResource = ctxt.getBundleContext().getBundle().getResource(AppDeployerConstants.REQ_FEATURES_XML);
if (reqFeaturesResource != null) {
InputStream xmlStream = reqFeaturesResource.openStream();
requiredFeatures = AppDeployerUtils.readRequiredFeaturs(new StAXOMBuilder(xmlStream).getDocumentElement());
}
} catch (Throwable e) {
log.error("Failed to activate BPEL Application Deployer", e);
}
}
Aggregations