All:

I haven't used xml-rpc since version 2.01 a couple of years ago.  It is not 
obvious to me in 3.0 how I can initialize a Handler and guarantee that only one 
instance of a Handler is used.

With 2.01, I used Spring to inject my handlers into my Server class and then I 
added the instance, which was injected.

Example:

public class MyClass {
    .
    .
    .
    // IMyHandler and port are injected by Spring
    public MyClass(IMyHandler myHandler, int port) {
       _webServer = new WebServer(port);
         _webServer.addHandler("myHandler", myHandler);    
        _webServer.start();
    }
    .
    .
}

I would like to do something similar with 3.0.

Any suggestions?

Thanks,
Perry


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to