aspose file tools
The moose likes Threads and Synchronization and the fly likes Thread.interrupt kills database connection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Thread.interrupt kills database connection" Watch "Thread.interrupt kills database connection" New topic
Author

Thread.interrupt kills database connection

Chinni Bujji
Ranch Hand

Joined: Jan 31, 2007
Posts: 60
Hi All,

I have thread, in the run method of the thread i have a while loop which continuously runs to query the database to get new records from the table
but when i am interrupting the thread using thread.interrupt() it is killing my database connection

any ideas please help
thanks in advance
Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 774

If you post example code then it is easy to think on that. Would it be possible for you to give example with code?


SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Thread.interrupt kills database connection
 
Similar Threads
join() and completely stopping a thread
interrupting System.in.read(byte[ ])
simple Q about thread.interrupt()
Blocking while waiting for record lock to clear
How to Close a Socket that is hanging on an I/O operation