Commit b8ea8cad authored by Piotr Gawron's avatar Piotr Gawron
Browse files

session must be closed in the finally

parent 6ccf2fdf
...@@ -151,9 +151,10 @@ public class StartupBean { ...@@ -151,9 +151,10 @@ public class StartupBean {
logger.info("Status of project: " + project.getProjectId() + " changed to fail."); logger.info("Status of project: " + project.getProjectId() + " changed to fail.");
} }
} }
dbUtils.closeSessionForCurrentThread();
} catch (Exception e) { } catch (Exception e) {
logger.error("Problem with changing project status ...", e); logger.error("Problem with changing project status ...", e);
} finally {
dbUtils.closeSessionForCurrentThread();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment