]
Stuart Douglas updated WFLY-2161:
---------------------------------
Assignee: Stuart Douglas (was: jaikiran pai)
JBAS014356 exception not thrown for @Asyncronous EJB methods
------------------------------------------------------------
Key: WFLY-2161
URL:
https://issues.jboss.org/browse/WFLY-2161
Project: WildFly
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: EJB
Affects Versions: 8.0.0.Alpha4
Reporter: James Livingston
Assignee: Stuart Douglas
If you call an ejb method with default visibility (e.g. from a servlet in the same
package), an EJBException with code JBAS014356 is thrown because the method is not
public.
If the method is annotated with @Asynchronous and returns void, the exception is not seen
because the interceptor from AsyncFutureInterceptorFactory is used before
NotBusinessMethodInterceptor, the exception is thrown in the worker thread instead.
With a void return, the exception is silently dropped. With a Future<?> return, it
will be set as the failure exception on the future rather than being thrown from the
call.
As per the forum reference we need to check the spec, but the validity of the business
method should probably be checked before the handoff to the worker thread.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: