Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread.interrupt kills database connection  RSS feed

 
Chinni Bujji
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 802
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you post example code then it is easy to think on that. Would it be possible for you to give example with code?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!