revert-70aa11f8
Ace 8 years ago
parent 0d94a293a4
commit 07b12fe4ea

@ -225,6 +225,8 @@ public class DeviceInformationManagerImpl implements DeviceInformationManager {
throw new DeviceDetailsMgtException("SQL error occurred while retrieving device from database.", e); throw new DeviceDetailsMgtException("SQL error occurred while retrieving device from database.", e);
} catch (DeviceDetailsMgtDAOException e) { } catch (DeviceDetailsMgtDAOException e) {
throw new DeviceDetailsMgtException("Exception occurred while retrieving device locations.", e); throw new DeviceDetailsMgtException("Exception occurred while retrieving device locations.", e);
} finally{
DeviceManagementDAOFactory.closeConnection();
} }
} }

@ -245,7 +245,7 @@ public class FeatureManagerImpl implements FeatureManager {
@Override @Override
public List<ProfileFeature> getFeaturesForProfile(int profileId) throws FeatureManagementException { public List<ProfileFeature> getFeaturesForProfile(int profileId) throws FeatureManagementException {
try { try {
DeviceManagementDAOFactory.openConnection(); PolicyManagementDAOFactory.openConnection();
return featureDAO.getFeaturesForProfile(profileId); return featureDAO.getFeaturesForProfile(profileId);
} catch (FeatureManagerDAOException e) { } catch (FeatureManagerDAOException e) {
throw new FeatureManagementException("Error occurred while getting the features", e); throw new FeatureManagementException("Error occurred while getting the features", e);

Loading…
Cancel
Save