Index: StatelessSessionEnterpriseContext.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/StatelessSessionEnterpriseContext.java,v retrieving revision 1.27 diff -u -r1.27 StatelessSessionEnterpriseContext.java --- StatelessSessionEnterpriseContext.java 22 Apr 2004 17:44:21 -0000 1.27 +++ StatelessSessionEnterpriseContext.java 19 Mar 2005 20:04:40 -0000 @@ -66,10 +66,8 @@ Throwable ex = e.getTargetException(); if (ex instanceof EJBException) throw (Exception)ex; - else if (ex instanceof RuntimeException) - throw new EJBException((Exception)ex); // Transform runtime exception into what a bean *should* have thrown else if (ex instanceof Exception) - throw (Exception)ex; + throw new EJBException((Exception)ex); else throw (Error)ex; }