Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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: 9079
12
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post.
 
If I had asked people what they wanted, they would have said faster horses - Ford. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!