[seam-commits] Seam SVN: r15256 - branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/transaction.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Oct 11 10:22:32 EDT 2012


Author: manaRH
Date: 2012-10-11 10:22:32 -0400 (Thu, 11 Oct 2012)
New Revision: 15256

Modified:
   branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/transaction/Transaction.java
Log:
JBSEAM-5047 - fixed catching of NamingException in tomcat.

Modified: branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/transaction/Transaction.java
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/transaction/Transaction.java	2012-10-11 14:22:22 UTC (rev 15255)
+++ branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/transaction/Transaction.java	2012-10-11 14:22:32 UTC (rev 15256)
@@ -81,7 +81,7 @@
       {
          return (javax.transaction.UserTransaction) context.lookup("java:comp/UserTransaction");
       }
-      catch (NameNotFoundException nnfe)
+      catch (NamingException ne)
       {
          try
          {
@@ -96,7 +96,7 @@
          }
          catch (Exception e)
          {
-            throw nnfe;
+            throw ne;
          }
       }
    }



More information about the seam-commits mailing list