tags:

views:

239

answers:

2

So i'm trying to get my Apache xmlrpc client/server implementation to play ball. Everything works fine except for one crucial issue:

my handler class (mapped through the properties file org.apache.xmlrpc.webserver.XmlRpcServlet.properties) reacts as it should but it's constructor is called at every method invocation. It would seem that the handler class is instantiated at each call which is bad because I have data stored in instance variables that I need to save between calls.

How do I save a reference to the instantiated handler so that I can access it's instance variables?

A: 

Maybe something to do with javax.xml.rpc.session.maintain set to true?

JRL
from what I gather after a googleing you comment is that this is a JAX-RPC specific technique? I suppose i could consider moving all my code from Apache XML-RPC to JAX-RPC but the word on the street is that JAX-RPC is a great deal more complex. Is that a correct assessment?
Johan Roxendal
A: 

So, for anyone else who still wants to use XMLRPC here's how I fixed this issue:

http://xmlrpc.sourceforge.net/

far superior to apache xmlrpc, in my opinion.

Johan Roxendal