From 95f72f77f1a86f8f7e92b8cceafd63b40374dcbb Mon Sep 17 00:00:00 2001 From: harshanL Date: Mon, 15 Dec 2014 20:20:11 +0530 Subject: [PATCH] Commented MobileActivator jndi lookup code --- .../MobileDeviceManagementBundleActivator.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/internal/MobileDeviceManagementBundleActivator.java b/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/internal/MobileDeviceManagementBundleActivator.java index 67cf1873a..54c0c9f22 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/internal/MobileDeviceManagementBundleActivator.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/internal/MobileDeviceManagementBundleActivator.java @@ -43,12 +43,12 @@ public class MobileDeviceManagementBundleActivator implements BundleActivator { public void start(BundleContext bundleContext) throws Exception { try { //Initialize Mobile Device Management datasource - MobileDeviceConfigurationManager.getInstance().initConfig(); - MobileDeviceManagementConfig config = MobileDeviceConfigurationManager.getInstance() - .getMobileDeviceManagementConfig(); - MobileDataSourceConfig - dsConfig = config.getMobileDeviceMgtRepository().getMobileDataSourceConfig(); - MobileDeviceManagementDAOFactory.init(dsConfig); +// MobileDeviceConfigurationManager.getInstance().initConfig(); +// MobileDeviceManagementConfig config = MobileDeviceConfigurationManager.getInstance() +// .getMobileDeviceManagementConfig(); +// MobileDataSourceConfig +// dsConfig = config.getMobileDeviceMgtRepository().getMobileDataSourceConfig(); +// MobileDeviceManagementDAOFactory.init(dsConfig); /* If -Dsetup option enabled then create device management database schema */ String setupOption = System.getProperty("setup"); @@ -58,7 +58,7 @@ public class MobileDeviceManagementBundleActivator implements BundleActivator { "-Dsetup is enabled. Mobile Device management repository schema initialization is about " + "to begin"); } - setupMobileDeviceManagementSchema(dsConfig); + setupMobileDeviceManagementSchema(null); } if (log.isDebugEnabled()) {