geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r993323 - /geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/embeddable/EJBContainer.java
Date Tue, 07 Sep 2010 11:56:59 GMT
Author: rickmcguire
Date: Tue Sep  7 11:56:59 2010
New Revision: 993323

URL: http://svn.apache.org/viewvc?rev=993323&view=rev
Log:
Don't wrap EJBExceptions in another EJBException

Modified:
    geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/embeddable/EJBContainer.java

Modified: geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/embeddable/EJBContainer.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/embeddable/EJBContainer.java?rev=993323&r1=993322&r2=993323&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/embeddable/EJBContainer.java
(original)
+++ geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/embeddable/EJBContainer.java
Tue Sep  7 11:56:59 2010
@@ -59,6 +59,10 @@ public abstract class EJBContainer {
                 }
             }
             throw new EJBException("Provider error. No provider definition found");
+        } catch (EJBException e) {
+            // if the container provider throws an EJBException, don't wrap another one 
+            // around the original. 
+            throw e;
         } catch (Exception e) {
             throw new EJBException("Provider error. No provider found", e);
         }



Mime
View raw message