[jboss-cvs] JBossAS SVN: r109932 - projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/async/impl/interceptor.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Dec 15 11:38:40 EST 2010
Author: ALRubinger
Date: 2010-12-15 11:38:39 -0500 (Wed, 15 Dec 2010)
New Revision: 109932
Modified:
projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/async/impl/interceptor/AsynchronousServerInterceptor.java
Log:
[EJBTHREE-1721] Revert out exception handling in server interceptors, to be handled by the client
Modified: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/async/impl/interceptor/AsynchronousServerInterceptor.java
===================================================================
--- projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/async/impl/interceptor/AsynchronousServerInterceptor.java 2010-12-15 16:37:02 UTC (rev 109931)
+++ projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/async/impl/interceptor/AsynchronousServerInterceptor.java 2010-12-15 16:38:39 UTC (rev 109932)
@@ -22,7 +22,6 @@
package org.jboss.ejb3.async.impl.interceptor;
import java.io.Serializable;
-import java.lang.reflect.Method;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
@@ -33,7 +32,6 @@
import org.jboss.aop.Advisor;
import org.jboss.aop.advice.Interceptor;
import org.jboss.aop.joinpoint.Invocation;
-import org.jboss.aop.joinpoint.MethodInvocation;
import org.jboss.ejb3.EJBContainer;
import org.jboss.ejb3.async.impl.SerializableFuture;
import org.jboss.ejb3.async.spi.AsyncInvocationId;
@@ -145,19 +143,6 @@
return returnValue;
}
- catch(final Throwable t)
- {
- // Only propagate this back if the return type is not void, else swallow the exception
- final MethodInvocation mi = (MethodInvocation) invocation;
- final Method m = mi.getActualMethod();
- final Class<?> returnType = m.getReturnType();
- if (void.class.equals(returnType))
- {
- log.debug("Received Throwable on @Asynchronous invocation " + m + ", not returning to the client:", t);
- return null;
- }
- throw t;
- }
finally
{
// Remove the invocation from the Map of those currently-executed
More information about the jboss-cvs-commits
mailing list