Hi. I am a new xml-rpc user and I have a couple of questions...
The first one is about reusing the same XmlRpcServer object in a servlet.
I thought that we could create the object and add the handlers in the init method of the servlet: this would improve the efficiency, as the object is created and initialized only once.
But... what would happen if two (or more) requests arrive at the same time? Is the server thread-safe?
The second question is: we need to pass additional parameters to the "execute" method. In particular, we need the execute method to know the IP address contained in the request header for logging purposes.
A solution would be to use the AuthenticatedXmlRpcServer, and use one of the two additional string parameters (originally intended for the username and password) to pass the IP address.
Is there a better (more elegant) yet simple solution?
Thanks in advance, Tommaso.
