You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by Bob Deanna <bd...@recursionsw.com> on 2006/04/04 23:30:31 UTC

Calling a server-side method asynchronously vs. synchronously

All,

For xml-rpc v2.0....

Is the AsyncCallback object an additional argument to the server-side
remote xml-rpc method invoked?

Obviously the client calls executeAsync(...) instead of execute(...) and
must implement and pass an AsyncCallback object.
Does the server-side method being called need to be changed in any way,
if you change the client from calling it synchronously to
asynchronously?
  
Or is that handled by xml-rpc internally?

Thanks!
Bob 

Re: Calling a server-side method asynchronously vs. synchronously

Posted by Jochen Wiedmann <jo...@gmail.com>.
Bob Deanna wrote:

> Does the server-side method being called need to be changed in any way,
> if you change the client from calling it synchronously to
> asynchronously?

To the server, there is absolutely no difference between a synchronous and
an asynchronous call. In both cases, there is a single client thread doing
the call and waiting for the reply.


Jochen