L.S.,

You should be able to use the @PreDestroy and @PostConstruct
annotations to start and stop the thread in due time, cfr.
http://servicemix.apache.org/servicemix-bean.html near the bottom of
the page

Regards,

Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



On Fri, Jul 15, 2011 at 4:41 AM, dingliu <[email protected]> wrote:
> Hi,
>  I write a bean class which start a thread to periodically doing some job.
> But when I undeploy the bean su, I find the thread is not stopped.
>  I tried ServiceAsssemblyListener interface - but it needs  static
> configuration and is impractical. I tried many other ways but they are all
> invalid.
>  In my opinion it's a common scenario.
>  Could anybody kindly tell me how to stop user thread after bean su is
> undeployed?
>  Thanks very much in advance!
>
>
>
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/how-to-stop-user-thread-after-bean-su-is-undeployed-tp4589168p4589168.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>

Reply via email to