This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes reading data from xml file asynchronously Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "reading data from xml file asynchronously" Watch "reading data from xml file asynchronously" New topic
Author

reading data from xml file asynchronously

Rajesh Kumar
Greenhorn

Joined: Oct 21, 2002
Posts: 10
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

Joined: May 05, 2000
Posts: 13974
How about having the process sleep for 10 seconds?


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
jQuery in Action, 2nd edition
 
subject: reading data from xml file asynchronously
 
Similar Threads
reading data from xml file asynchronously
reading data from xml file asynchronously
How to run XML within JACL
Using Hashtable to store an xml document for further reference
Using hashtable