Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/services/FixingsKMChartService.java @ 8566:fe7e9da6312a
(issue1797) Move close into session release and guard it.
To avoid leaking open and Held sessions we centrally close
the session in the SessionHolder on release.
This also removes some duplicated code in SedDBSessionHolder
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 24 Feb 2015 17:16:14 +0100 |
parents | af13ceeba52a |
children | 740d65e4aa14 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8565:ea17665c5aad | 8566:fe7e9da6312a |
---|---|
191 SessionHolder.acquire(); | 191 SessionHolder.acquire(); |
192 try { | 192 try { |
193 return doProcess(data, globalContext, callMeta); | 193 return doProcess(data, globalContext, callMeta); |
194 } | 194 } |
195 finally { | 195 finally { |
196 SessionHolder.HOLDER.get().close(); | |
197 SessionHolder.release(); | 196 SessionHolder.release(); |
198 } | 197 } |
199 } | 198 } |
200 | 199 |
201 protected Service.Output doProcess( | 200 protected Service.Output doProcess( |