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
[http://community.jboss.org/message/587339#587339]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to