Hi. in my application i have to start a thread that periodically check the db
and do something.
Now, to start the thread i'm using the camel-context.xml

<bean id="testDeamon" class="xxx.TestDeamon">
        <property name="context" ref="camel"/>
</bean>

so i have also the camel context in my thread. When the thread is creating,
it's call this.start. To keep always alive, in the run method i use
while (true) {
...
}

the problem is that when i uninstall my application from container (deleting
the zip file from hotdeploy) the thread still alive.
There is an property on camel context (ex. context.isAlive()) that i can
check to stop the thread?
Or i have to add a listener on context lifecycle?

Many thanks :D
-- 
View this message in context: 
http://www.nabble.com/Thread-Lifecycle-problem-tp14349573s12049p14349573.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to