I mistakenly created a dead loop in on remote method of a session bean. I have to kill the jboss process to get the application back to control.
My question is: Is it possible to make this better? I mean is there a tool can let me kill the part I want?
If you mean a cpu loop, no.
The only mechanism is thread.stop() which
won't do garbage collection or release resources
hence it is deprecated.