I have had a lot of good luck with XML-RPC servlets in Jetty.  In the
constructor of the XML-RPC  servlet, I have:

        ServletContext context = getServletContext();

        // this facade only inputs and outputs XMLRPC kosher data
structures
        itsNeuroinfoXMLRPC = new NeuroinfoXMLRPC(itsNeuroinfo);

        xmlrpc = new XmlRpcServer ();

        // people should use the XMLRPC friendly facade
        xmlrpc.addHandler("neuroinfo", itsNeuroinfoXMLRPC);

and it works great.

-Jim

-----Original Message-----
From: Massive Boisson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 17, 2005 6:52 PM
To: [EMAIL PROTECTED]
Subject: Re: jetty with XML-RPC

I'd love to know what is +1 mean?

Anyway, thanks for the reply. After reading documentation some more,
I guess this would make sense. And I could put the servlet into Jetty
(I am trying to have it run all in on JVM).

But what I really cannot find answer to now is following:

Let's say I do this:
 org.apache.xmlrpc.WebServer.addHandler("myHandler", myHandler);
(I will try to start with webServer and only switch to XmlRpcServer &
servlet once I start seeing problems)

1. Now it opens a new thread for every incomming request? 
--> (Yes it opens new thread for every incomming request)
2. But does it use one instance of myHandler, or does it create new
instance 
of myHandler for every request? 
--> (It creates new instance of myHandler for every request)
Am I right with my ansers.

Thankfully,

--MB

Reply via email to