summaryrefslogtreecommitdiff
path: root/BKULocal/src/main/java/at/gv/egiz/bku
diff options
context:
space:
mode:
authormcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2010-05-05 16:46:02 +0000
committermcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2010-05-05 16:46:02 +0000
commitf1d1f5635a6d452b261c1c29e5c0e43a0320125b (patch)
treea9ad26b49bff10068ce1efd53eddf12381d8416f /BKULocal/src/main/java/at/gv/egiz/bku
parent496f8180e80e6283ef295adcc4a22f95df5ced08 (diff)
downloadmocca-f1d1f5635a6d452b261c1c29e5c0e43a0320125b.tar.gz
mocca-f1d1f5635a6d452b261c1c29e5c0e43a0320125b.tar.bz2
mocca-f1d1f5635a6d452b261c1c29e5c0e43a0320125b.zip
Added ShutdownHandler to BKULocal.
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@727 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKULocal/src/main/java/at/gv/egiz/bku')
-rw-r--r--BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/BKURequestHandler.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/BKURequestHandler.java b/BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/BKURequestHandler.java
index cd81b592..7c6e165f 100644
--- a/BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/BKURequestHandler.java
+++ b/BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/BKURequestHandler.java
@@ -104,7 +104,6 @@ public class BKURequestHandler extends SpringBKUServlet {
if (redirectURL != null) {
// send redirect and return
resp.sendRedirect(redirectURL);
- return;
}
// wait for the binding processor to finish processing
@@ -117,6 +116,13 @@ public class BKURequestHandler extends SpringBKUServlet {
log.error("Request processing failed.", e);
resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
return;
+ } finally {
+ bindingProcessorManager.removeBindingProcessor(id);
+ }
+
+ if (redirectURL != null) {
+ // already redirected
+ return;
}
resp.setStatus(bindingProcessor.getResponseCode());