Hello,
we are using jboss as 6.1.0 final and found this bug.
At the following example the second method won't be asynchronous:
@Asynchronous
@Override
public Future<V> invoke(InvocationTarget<V> target, Object[] invokerParams, InvocationMonitor... monitors)
@Asynchronous
@Override
public Future<V> invoke(Callable<V> callable, InvocationMonitor... monitors) { ... }
Only the first Method is executed async, the second is executed sync. The same behavior, if the @Asynchronous is defined as class annotation.
If I name the two methods different both methods are executed async. The following method signures work:
@Asynchronous
@Override
public Future<V> invokeIT(InvocationTarget<V> target, Object[] invokerParams, InvocationMonitor... monitors)
@Asynchronous
@Override
public Future<V> invokeC(Callable<V> callable, InvocationMonitor... monitors) { ... }
I think the way to define async methods are not correct implemented. I hope my description help to fix this problem in future.
best regards
nauni