Issue Type: Bug Bug
Assignee: Unassigned
Components: api, ejb3_1
Created: 08/Oct/12 9:55 AM
Description:

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

Environment: Ubuntu Linux,32 bit
Project: EJB 3.0
Priority: Major Major
Reporter: Oliver Wagner
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: http://www.atlassian.com/software/jira