Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

reading data from xml file asynchronously

 
Rajesh Kumar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • 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
 
Marilyn de Queiroz
Sheriff
Posts: 9063
12
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic