Fixed the issue in server startup error logs

This commit is contained in:
lakshani 2017-02-20 13:53:18 +05:30
parent a4ac88ef58
commit 964e2aade7

View File

@ -37,16 +37,11 @@ public class MDMComponent {
protected void activate(ComponentContext context) { protected void activate(ComponentContext context) {
BundleContext bundleContext = context.getBundleContext(); BundleContext bundleContext = context.getBundleContext();
mdmServiceRegistration = bundleContext.registerService(ApplicationOperations.class.getName(), new
ApplicationOperationsImpl(), null);
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {
log.debug("WSO2MDM MDM Component activated"); log.debug("WSO2MDM MDM Component activated");
} }
try {
mdmServiceRegistration = bundleContext.registerService(ApplicationOperations.class.getName(), new
ApplicationOperationsImpl(), null);
} catch (Throwable e) {
log.error("Failed to activate org.wso2.carbon.appmgt.mdm.restconnector.internal." +
"MDMComponent : " + e);
}
} }
protected void deactivate(ComponentContext context) { protected void deactivate(ComponentContext context) {