All,
I have my first question answered.
It appears that XmlRpcClient's "execute" gets called either way, but
with async, its done in a separate thread.
Any thoughts as to why I would get a null pointer exeception as follows?
Exception in thread "Thread-0" java.lang.NullPointerException
at
org.apache.xmlrpc.XmlRpcClient$XmlRpcClientAsyncThread.run(XmlRpcClient.
java:271)
synchronized void enqueue(String method, Vector params,
AsyncCallback callback)
{
CallData call = new CallData(method, params, callback);
...
}
My method, params and callback object are non-null, which is confusing
to me.
Thanks in advance for any help!
Bob
-----Original Message-----
From: Bob Deanna [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 04, 2006 4:31 PM
To: [email protected]
Subject: 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