changeset 328:1eb7863136f4

ArtifactDatabase: Called context listeners too early. artifacts/trunk@2583 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 25 Aug 2011 14:22:41 +0000
parents 8a3ddd374dd1
children 666417d5781c
files ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Aug 25 13:47:41 2011 +0000
+++ b/ChangeLog	Thu Aug 25 14:22:41 2011 +0000
@@ -1,3 +1,9 @@
+2011-08-25	Sascha L. Teichmann	<teichmann@intevation.de>
+
+	* artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java
+	  (outCollection): Called context listener too early before deferred out. This
+	  led to broken DB sessions.
+
 2011-08-25  Ingo Weinzierl <ingo@intevation.de>
 
 	* artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java,
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java	Thu Aug 25 13:47:41 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java	Thu Aug 25 14:22:41 2011 +0000
@@ -1709,12 +1709,7 @@
             callMeta,
             c);
 
-        try {
-            return new DeferredCollectionOutputImpl(c, type, format, callMeta);
-        }
-        finally {
-            cc.postCall();
-        }
+        return new DeferredCollectionOutputImpl(c, type, format, callMeta);
     }
 
     protected void initCallContext(CallContext cc) {

http://dive4elements.wald.intevation.org