public void updateSource(DIDataSource datasouce) { DI_DAO dao = null; try { dao = new DI_DAO(); dao.beginTransaction(); dao.updateDataSouce(datasouce); dao.commitTransaction(); } catch (Exception ex) { dao.rollbackTransaction(); throw ex; } }