[jboss-user] [EJB3] - Re: Cancelling an @Asynchronous method with Future.cancel
david_b
do-not-reply at jboss.com
Tue Feb 15 18:57:06 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/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&containerType=14&container=2029]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110215/9f314880/attachment.html
More information about the jboss-user
mailing list