Skip to Content
0
Oct 21, 2009 at 10:34 AM

threads (webservices etc)

37 Views

hi,

i'm writing webservices, portal components etc which use a custom-base-class which starts a thread and listens on a given port. so far so good. everything works fine etc etc.

but my problem is, when i re-deploy the application or i stop it within the visual administrator's deploy feature, the webservice or portalcomponent stops successful (cant open it using the portal or the webservice navigator), but the thread is still running and i dont know why. i even abstracted the finalize() function to kill my sub-threads, but that doesnt work either.

any help or suggestions? i just want to have my applications clean, so if i stop them, all subthreads will die... or even better, a function call.. like finalize() would ne the best damn thing for me.

thanks,

constantin