axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amila Suriarachchi <amilasuriarach...@gmail.com>
Subject Re: Lifecycle, ServiceLifeCycle methods never called?
Date Wed, 28 Jan 2009 05:55:16 GMT
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 <
amilasuriarachchi@gmail.com> wrote:

>
>
> On Wed, Jan 28, 2009 at 1:27 AM, Jason Wells <jason@wells.me> 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/

Mime
View raw message