Thanks a lot Dan. It worked :)
Dan Diephouse wrote:
Well, I suppose it depends on how you create your Service. Once you
have your Service, things are easy.
Service service = new ObjectServiceFactory.create(FooService.class);
// this can be done at any time:
service.addInHandler(new MyHandler());
If you're using spring, you could look up the service registry from
the context and lookup the service:
ServiceRegistry reg = context.getBean("xfire.serviceRegistry ");
Service service = reg.getService("ServiceName");
service.addInHandler(new MyHandler());
Regards,
- Dan
On 11/23/06, * Marie Claire Rizzo* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi
I wanted to ask whether anyone knows if it's possible to set
handlers on
the Xfire server at runtime as opposed to setting them during
construction. What I need to achieve is to be able to dynamically
add or
remove handlers at runtime since it may not always be possible to know
which handlers are required prior to its construction. Is this
possible?
I appreciate any comments on the matter. Thanks.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog