have a look at here[1] thanks, Amila.
[1] http://blog.facilelogin.com/2008/11/axis2-services-lifecycle-vs.html On Wed, Jan 28, 2009 at 11:24 AM, Amila Suriarachchi < [email protected]> wrote: > > > On Wed, Jan 28, 2009 at 1:27 AM, Jason Wells <[email protected]> wrote: > >> Hi, >> I have an Axis2 1.4.1 service in Tomcat 6 deployed at transport session >> scope. It implements Lifecycle and ServiceLifeCycle. When I hit the >> service for the first time, I can see init() gets called. However, neither >> startUp(), shutDown() nor destroy() ever get called, not even when I let the >> session time out or shut down Tomcat. What am I missing? >> > > you need to set ServiceLifeCycle as follows > > <service name="POJOService" class="test.kp.service.TestServiceLifeCycle"> > > in the services.xml > > ServiceLifeCycle actually refers to AxisService Object life cycle. > > thanks, > Amila. > >> >> Thanks, >> Jason >> >> > > > -- > Amila Suriarachchi > WSO2 Inc. > blog: http://amilachinthaka.blogspot.com/ > -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
