No JBoss has no control of a cpu loop.
It would be possible to suspend or stop the thread,
but that isn't much use if it has locked resources.
If you are not in a cpu loop, the transaction timeout
should take care of breaking the loop when you next
wait for something or try to enlist a resource.