|
I have been using a new thread to make the batch call, and thus have to give it a name. I then use the main thread to check if it is done within 5 minutes. I pretty much have it all figured out now, but I do not know how to terminate the thread if it has failed to return. Java tells me that Thread.stop() is unsafe.
Also, how do i reference the Main thread? Can I reference it from itself?
|