You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Martin Fernau <m....@cps-net.de> on 2009/04/29 15:28:25 UTC
invoking a method while undeploying? (like finalize of Object)
Dear all Axis developers,
If axis is on the way to undeply a service, is it possible to let axis invoke
a method on this Service?
Something like implementing a pre defined interface from axis2 (maybe
"WebService") which defines one method (maybe "undeploying()" ) which will be
called from axis if this webservice is going to be undeployed. In this way the
developer has a chance to do several things (cleanup and so on) just before
this service is undeployed. Think on this like the finalize-Method of Object.
Regards,
Martin Fernau
Re: invoking a method while undeploying? (like finalize of Object)
Posted by keith chapman <ke...@gmail.com>.
Have you lookes at ServiceLifeCycle support in Axis2? Please refer [1] for a
tutorial on what it is how to use it.
Thanks,
Keith.
[1] http://wso2.org/library/333
On Wed, Apr 29, 2009 at 6:58 PM, Martin Fernau <m....@cps-net.de> wrote:
> Dear all Axis developers,
>
> If axis is on the way to undeply a service, is it possible to let axis
> invoke
> a method on this Service?
> Something like implementing a pre defined interface from axis2 (maybe
> "WebService") which defines one method (maybe "undeploying()" ) which will
> be
> called from axis if this webservice is going to be undeployed. In this way
> the
> developer has a chance to do several things (cleanup and so on) just before
> this service is undeployed. Think on this like the finalize-Method of
> Object.
>
> Regards,
> Martin Fernau
>
--
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/
blog: http://www.keith-chapman.org