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.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947170#3947170

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947170


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to