• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet with threads

 
Dinesh Bhogle
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to connet to database through threads .i want to pick up new
values after every 5 minutes.pls give coding if possible
 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in the run method of thread
make a connection to the DB & exectute query
then let thread sleep for 15000 microseconds
second option is to not place connection in run method
but just execute query after some time
i think this will help u
feel free to ask if problem still exists...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic