I have found a nice article at IBM the explains how to use and handle
thread interruptions.
http://www.ibm.com/developerworks/java/library/j-jtp05236.html
Best Regards
Christian
Am 04.10.2010 01:37, schrieb Christian Schneider:
I just checked Thread.interrupt() with the Camel Jms Transport as I
am currently writing a test for another problem.
The blocking thread waits in an Object.wait() in the ActiveMQ jms
transport. So the interrupt command works and the blocking thread
returns with an UnexpectedJmsException from the spring framework. This
means the cancel operation basically works. I think the exception
could be nicer though. Some runtime exception with the same meaning as
InterruptedException would be ideal.
I will also do the test with CXF jms transport and cxf http transport
to see how we handle this in CXF.
Best Regards
Christian
--
----
http://www.liquid-reality.de