This content has been marked as final.
Show 4 replies
-
1. Re: cancelling remoting requests
gavin.king May 26, 2006 3:33 PM (in response to knaas)Sounds like a good idea. Shane owns this stuff.
-
2. Re: cancelling remoting requests
shane.bryzak May 26, 2006 6:00 PM (in response to knaas)Will look at this today.
-
3. Re: cancelling remoting requests
shane.bryzak May 28, 2006 4:45 AM (in response to knaas)I've checked into CVS support for cancelling a remote call. Now when you execute your remote method, you will be returned a Call object, which has the following properties:
data - contains the call in serialized XML form
id - the ID of the call
callback - the callback method reference
asyncReq - the XMLHttpRequest object
There is also a new method, Seam.Remoting.cancelCall() which takes the call ID as a parameter. So, if you want to cancel a call that's been executed you'd do something like this:var myCall = Seam.Component.getInstance("myActionBean").foo(); // Cancel the call Seam.Remoting.cancelCall(myCall.id);
Make sure you cancel the call this way, and not via the asyncReq's abort() method. Also I haven't had time to test this stuff so let me know if there's any problems. -
4. Re: cancelling remoting requests
knaas May 30, 2006 10:44 AM (in response to knaas)It's working exactly as I would expect it to. Thanks for doing this so quickly!