axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepal Jayasinghe <dee...@opensource.lk>
Subject Re: init and destroy functions in an application scope axis2 service
Date Wed, 30 May 2007 05:43:30 GMT
Hi Gul

>  
> I see init and destroy functions implemented in one of the samples
> (servicelifecycle) in Axis2 distro.
>  
> public void init(ServiceContext serviceContext)
> public void destroy(ServiceContext serviceContext) throws AxisFault
>  
> *When are these functions get invoked for a service that is deployed
> as "application" scope service?*
Servicelifecycle has nothing to do with the service scope , the life
cycle will help you to manage the lifetime of a your service
(description) , not the contexts. 
Service lifecycle will help you to do something like open a DB
connection when you deploy the service and  to close that when system
shutdown.
> *What happens if an "application" scope service doesn't implement
> those functions?*
Nothing will happen.
> ** 
> Gul

-- 
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"



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


Mime
View raw message