[jboss-user] [EJB3] - Re: Cancelling an @Asynchronous method with Future.cancel

david_b do-not-reply at jboss.com
Mon Feb 14 18:10:07 EST 2011

david_b [http://community.jboss.org/people/david_b] created the discussion

"Re: Cancelling an @Asynchronous method with Future.cancel"

To view the discussion, visit: http://community.jboss.org/message/587339#587339

I still haven't resolved this problem, but looking into it further the calling side is behaving correctly. Attempting to use the future after the calling cancel results in a CancellationException.

The specs for Future have the following information for cancel:
"Attempts to cancel execution of this task.  This attempt will fail if the task has already completed, already been cancelled, or could not be cancelled for some other reason"

Does anyone know what "some other reason" could be?

Could the container be doing something smart and choosing not to interrupt the executing thread?

Reply to this message by going to Community

Start a new discussion in EJB3 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110214/870f3a76/attachment-0001.html 

More information about the jboss-user mailing list