XML RPC Question

2009-10-13 Thread balakarthik.baskaran
Hi, We are making use of a configuration where the XMLRPC Server is brought up in one linux server and the XMLRpc Client class is invoked in another Linux Server(via a shell script and both are behind the firewall).The XMLRPC server invokes a java business class and it runs for more than one

Re: XML RPC Question

2009-10-13 Thread Jochen Wiedmann
Hi, if your task actually requires more than one hour to run, I'd strongly recommend an asynchronous procedure, like this: - On the server, spawn a thread, which creates a unique ID. The new thread starts performing the task and returns the ID to the client. - Client starts running in a loop.

Re: XML RPC Question

2009-10-13 Thread Ken Tanaka
I agree, your communications would then be much more resistant to network interruptions. And if the server and client each store the unique ID (along with essential parameters), either could possibly be shutdown and restarted and be able to resume the transaction. -Ken Jochen Wiedmann wrote:

class cast exception with array return result

2009-10-13 Thread christopher.cooper
I am continuing this from my bug post (sorry). I am having difficulty with an array not being cast properly. I have done what is outlined on here as far as I can tell. http://ws.apache.org/xmlrpc/faq.html#arrays This is the issue I opened for some background info

Re: class cast exception with array return result

2009-10-13 Thread Stanislav Miklik
Hi, you are right, there is a bug in FAQ. the point is, that you can not cast the result of the XML RPC call, in your case return (String []) windows.getInstances(category); is the problem. You have to transform the result to String[] as described in the FAQ (but without the cast in the first

Re: class cast exception with array return result

2009-10-13 Thread Jochen Wiedmann
You are right, Stan. Fixed! On Tue, Oct 13, 2009 at 11:36 PM, Stanislav Miklik stanislav.mik...@gmail.com wrote: Hi, you are right, there is a bug in FAQ. the point is, that you can not cast the result of the XML RPC call, in your case return (String []) windows.getInstances(category);

RE: XML RPC Question

2009-10-13 Thread balakarthik.baskaran
Hi Jochen, The setup is running in production for more than 1 year and we are seeing the timeout behaviour only recently when the time of execution of the server process is 1hr.Modifying the arch would be quite difficult at this point. I was looking at multiple layers and was little sceptic on