Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reading data from xml file asynchronously

 
Rajesh Kumar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a xml file and would like to read data from the xml file every 10 seconds. I want to run this process once in every 10 seconds as this file is updated freqently.
please note that the daemon thread which reads the xml data should run continously for ever.
Can I implement the process using java.util.Timer?
Any sample code and suggestions would be of great help as I'm new to Java.
Thanks in Advance,
szh
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about having the process sleep for 10 seconds?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic