I have two threads. One is extracting data from database and another is displaying progressbar with abort button. If I press abort button, the query getting executed by another thread should get cancelled.
I know how to kill it from command prompt; but, if anyone of you is knowing about cancelling query from java, that will be help for me.