Affects: Release Notes project_key: JBPAPP6 After method cancel() returns, subsequent calls to isDone() should always return true. The server side implementation of the Future instance returned for the async invocation has a bug in the isDone() method since it doesn't honour the requirements set by the isDone() javadoc about always returning true after the cancel() is invoked. Please, see the comment https://issues.jboss.org/browse/EJBCLIENT-28?focusedCommentId=12690373&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12690373 On jira EJBCLIENT-28. The testcase could be checked here: https://github.com/ochaloup/jboss-as/blob/async-method-cancel-invocation/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/async/AsyncMethodTestCase.java#L184
Link: Added: This issue is related to EJBCLIENT-28
Labels: Added: eap6_need_triage
Pull request sent https://github.com/jbossas/jboss-as/pull/2246
Marking for CR1 and will verify it was brought in.
This made it to AS7 upstream this morning. Marking this as resolved.
Verified on ER8.
Reopening for release note
Release Notes Docs Status: Added: Not Yet Documented Affects: Added: Release Notes
Verified on CR1 - org.jboss.as.test.integration.ejb.async.AsyncMethodTestCase.testCancelAsyncMethod() passed
Release Notes Docs Status: Removed: Not Yet Documented Added: Documented as Resolved Issue Release Notes Text: Added: The server side implementation of the Future instance returned for an asychronous EJB method invocation had a flaw in the isDone() method. As a result, the isDone() method on an EJB was not always returning true when the cancel() method was called asynchronously. The isDone() method now properly registers an asychronous call to cancel(), and always returns true after cancel() has been called.
Release Notes Docs Status: Removed: Documented as Resolved Issue Release Notes Text: Removed: The server side implementation of the Future instance returned for an asychronous EJB method invocation had a flaw in the isDone() method. As a result, the isDone() method on an EJB was not always returning true when the cancel() method was called asynchronously. The isDone() method now properly registers an asychronous call to cancel(), and always returns true after cancel() has been called. Docs QE Status: Removed: NEW