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/587601#587601
--------------------------------------------------------------
If anyone else encounters this problem, I've found a way around it using JMS.
My session bean creates a temporary queue, then sends an "acknowledge" type
message to the caller via JMS with the replyTo address set to the temporary queue. The
caller can send a "cancel" message to the temporary queue, which the bean checks
periodically during processing.
It's much more complex but it works on AS 6.0.0. When cancelling an asynchronous call
is supported I will switch to the simpler option.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/587601#587601]
Start a new discussion in EJB3 at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]