You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by Paolo Campanella <pa...@bulksms.com> on 2007/05/31 11:24:03 UTC

Static method support

Hi

Apache XML-RPC doesn't seem to support exposing the static methods of
handlers. Is there any particular reason for this (it seems wasteful to
generate a new handler object for every single request)?


Thanks

Paolo



---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-dev-help@ws.apache.org


Re: Static method support

Posted by Paolo Campanella <pa...@bulksms.com>.
On Thu, 2007-05-31 at 11:32, Jochen Wiedmann wrote:

> > Apache XML-RPC doesn't seem to support exposing the static methods of
> > handlers. Is there any particular reason for this (it seems wasteful to
> > generate a new handler object for every single request)?

> If you want to omit the generation of new handler objects, then the
> suggested method is the use of the StatelessProcessorFactoryFactory.

Thanks, that worked perfectly.


Bye

Paolo



---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-dev-help@ws.apache.org


Re: Static method support

Posted by Jochen Wiedmann <jo...@gmail.com>.
On 5/31/07, Paolo Campanella <pa...@bulksms.com> wrote:

> Apache XML-RPC doesn't seem to support exposing the static methods of
> handlers. Is there any particular reason for this (it seems wasteful to
> generate a new handler object for every single request)?

If you want to omit the generation of new handler objects, then the
suggested method is the use of the StatelessProcessorFactoryFactory.
See

    http://ws.apache.org/xmlrpc/apidocs/org/apache/xmlrpc/server/RequestProcessorFactoryFactory.html

for details.

Apart from that, you are always free to create your own handler mapping.

Jochen

-- 
Women have the ability to wind you round their little finger.
Daughters can use all of the fingers together.

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-dev-help@ws.apache.org