Hello,
On a Spring/Hibernate web application, I'm using a Work Queue, built with Java Threads.
The Threads's run()
method calls an Oracle procedure, which can last a bunch of minutes/hours. All the Work Queue's threads are stored in a list.
I would like to build an interface (JSP), where I could display a list of the running jobs, and allow the users to "kill" a job.
I can't use the Thread.stop()
method, which is deprecated. I also already tried the different methods with interrupt()
, but I did not succeed in stopping the thread during the Oracle call.
- Do you think it's possible to stop a thread during an Oracle call ?
- Otherwise, should i look for another way to do this work queue (without threads) ?
Thanks a lot !