Commented MobileActivator jndi lookup code

revert-70aa11f8
harshanL 10 years ago
parent 4a419f3ebf
commit 95f72f77f1

@ -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()) {

Loading…
Cancel
Save