Author: christian.bauer(a)jboss.com
Date: 2008-02-29 07:50:52 -0500 (Fri, 29 Feb 2008)
New Revision: 7496
Modified:
trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/ui/FeedServlet.java
trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/ui/FileServlet.java
Log:
Don't invalidate the session after exception, Seam does "exception recovery"
magic
Modified: trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/ui/FeedServlet.java
===================================================================
--- trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/ui/FeedServlet.java 2008-02-29
12:38:27 UTC (rev 7495)
+++ trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/ui/FeedServlet.java 2008-02-29
12:50:52 UTC (rev 7496)
@@ -282,10 +282,9 @@
}
}
throw new ServletException(ex);
- } finally {
- invalidateSessionIfPossible(request);
}
+ invalidateSessionIfPossible(request);
}
public SyndFeed createSyndFeed(String baseURI, SyndFeedType syndFeedType, Feed feed,
Integer currentAccessLevel) {
Modified: trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/ui/FileServlet.java
===================================================================
--- trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/ui/FileServlet.java 2008-02-29
12:38:27 UTC (rev 7495)
+++ trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/ui/FileServlet.java 2008-02-29
12:50:52 UTC (rev 7496)
@@ -87,7 +87,6 @@
log.error("could not roll back transaction: " +
rbEx.getMessage());
}
}
- invalidateSessionIfPossible(request);
throw new ServletException(ex);
}
}
Show replies by date