Is there a nice way that's not CPU intensive to have a Java thread be in the Runnable state for a long period of time, like one hour?
EDIT: I'm trying to reproduce a bug. I'm suspecting a database connection is reset after a period of time, but thread sleep didn't do it. Before I move on to other possible root causes, I want to make sure that a thread in a runnable state also doesn't cause the connection to be reset.
EDIT: I found a workaround which looks like a big fat hack. Posted the answer to my own question if it helps other people at all.