[seam-commits] Seam SVN: r7496 - trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/ui.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Feb 29 07:50:53 EST 2008


Author: christian.bauer at 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);
                 }
             }




More information about the seam-commits mailing list