details: https://code.openbravo.com/erp/devel/pi/rev/443d243fb7b4 changeset: 21797:443d243fb7b4 user: Augusto Mauch <augusto.mauch <at> openbravo.com> date: Thu Jan 16 14:39:06 2014 +0100 summary: Fixes issue 25492: OBSchedulerInitializerListener connection is closed.
OBSchedulerInitializerListener now calls OBDal.getInstance().commitAndClose(); instead of OBDal.getInstance().getConnection.commit(); This has been placed in the finally block to make sure it is alwas executed. diffstat: src/org/openbravo/base/OBSchedulerInitializerListener.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (15 lines): diff -r 929ca6801012 -r 443d243fb7b4 src/org/openbravo/base/OBSchedulerInitializerListener.java --- a/src/org/openbravo/base/OBSchedulerInitializerListener.java Thu Jan 16 13:14:39 2014 +0100 +++ b/src/org/openbravo/base/OBSchedulerInitializerListener.java Thu Jan 16 14:39:06 2014 +0100 @@ -129,9 +129,9 @@ if (s != null && !s.isClosed()) { s.close(); } + OBDal.getInstance().flush(); + OBDal.getInstance().commitAndClose(); } - OBDal.getInstance().flush(); - OBDal.getInstance().getConnection().commit(); } else { System.out.println("Connection Failed!"); } ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits