|
|
@ -43,12 +43,12 @@ public class MobileDeviceManagementBundleActivator implements BundleActivator {
|
|
|
|
public void start(BundleContext bundleContext) throws Exception {
|
|
|
|
public void start(BundleContext bundleContext) throws Exception {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
//Initialize Mobile Device Management datasource
|
|
|
|
//Initialize Mobile Device Management datasource
|
|
|
|
MobileDeviceConfigurationManager.getInstance().initConfig();
|
|
|
|
// MobileDeviceConfigurationManager.getInstance().initConfig();
|
|
|
|
MobileDeviceManagementConfig config = MobileDeviceConfigurationManager.getInstance()
|
|
|
|
// MobileDeviceManagementConfig config = MobileDeviceConfigurationManager.getInstance()
|
|
|
|
.getMobileDeviceManagementConfig();
|
|
|
|
// .getMobileDeviceManagementConfig();
|
|
|
|
MobileDataSourceConfig
|
|
|
|
// MobileDataSourceConfig
|
|
|
|
dsConfig = config.getMobileDeviceMgtRepository().getMobileDataSourceConfig();
|
|
|
|
// dsConfig = config.getMobileDeviceMgtRepository().getMobileDataSourceConfig();
|
|
|
|
MobileDeviceManagementDAOFactory.init(dsConfig);
|
|
|
|
// MobileDeviceManagementDAOFactory.init(dsConfig);
|
|
|
|
|
|
|
|
|
|
|
|
/* If -Dsetup option enabled then create device management database schema */
|
|
|
|
/* If -Dsetup option enabled then create device management database schema */
|
|
|
|
String setupOption = System.getProperty("setup");
|
|
|
|
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 " +
|
|
|
|
"-Dsetup is enabled. Mobile Device management repository schema initialization is about " +
|
|
|
|
"to begin");
|
|
|
|
"to begin");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setupMobileDeviceManagementSchema(dsConfig);
|
|
|
|
setupMobileDeviceManagementSchema(null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|