Thanks Op3racional. Yes, it’s done that way. The point is that its part of a servlet. In fact, nextResult() is implemented with a timeout of 2 minutes. I can operate all other things in other threads and its working fine. But when I want to shutdown the server, i have those threads waiting. The server dont wait so much and shutdowns abnormally. I was looking for a way to tell those threads to wait no more, so the server can go down normally. Am I missing something about Java threads here?