proper approach is to use
init(ServiceConetx)
destroy(ServiceContext);
any way its better to create a JIRA , since we need to call destroy
method when service removed from the system , its not tomcat problem its
Axis2 problem.
Roman Weidlich wrote:
> MyService (application scope) starts in its constructor a thread:
>
> private static boolean first = true;
>
> public MyService() {
> if (first) {
> Thread t = new Thread(this);
> t.start();
> first = false;
> }
> }
>
> On redeploy (drop a new MyService.aar into axis2 services dir) and on
> the next invocation of MyService the old thread is still running!
>
> It seems tomcat don't kill the thread started by MyService before.
>
>
--
Thanks,
Deepal
................................................................
~Future is Open~