The XmlRpcClient is expected to be used from within a single thread. XmlRpcClients are small objects, and you may instantiate many clients for the same termination point. In other words, each application thread should use its own XmlRpcClient instance. I believe, however, that the methods in XmlRpcClient are synchronized so the worst case scenario would be that your RPC invocations are serialized (which may not be what you want, since you're using multiple threads).
The server is, naturally, thread safe.
Regards,
Greger Ohlson.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I haven't looked too closely. But from the documentation it appears that Marque XML-RPC Library is thread safe. Would that be a good assumtion?
Michael
Hi,
The XmlRpcClient is expected to be used from within a single thread. XmlRpcClients are small objects, and you may instantiate many clients for the same termination point. In other words, each application thread should use its own XmlRpcClient instance. I believe, however, that the methods in XmlRpcClient are synchronized so the worst case scenario would be that your RPC invocations are serialized (which may not be what you want, since you're using multiple threads).
The server is, naturally, thread safe.
Regards,
Greger Ohlson.