wood burning stoves 2.0*
The moose likes Java in General and the fly likes Realtime quotes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Realtime quotes

Ajay Oruganti
Greenhorn

Joined: Jun 25, 2002
Posts: 5
I need to display some realtime data on a web-based application. The data has to be accurate to the tune of 0.25 seconds (ideally). As such, refreshing the page is out of question. What is the best way to do this? The data is read from XML feeds.
In the worst case, it is possible to make it a non-web-based application (i.e., stand-alone app). Would this help me in anyway?
Thanks
Ajay
Chris Shepherd
Ranch Hand

Joined: Jun 27, 2000
Posts: 286
not sure about the online version, but as for your worst case scenario, it should be doable. Kind of depends on how you are displaying the data and if you can update the data more often than .25 secs. If you can go faster and your displaying the data isn't too intensive, you should have no problems. just pump your read/update thread to run every 150-200 millisecs. That time gap plus your visual update should put you in around 250 ms. You can tweak it to start faster than 150 ms if you find you aren't meeting the 250 ms deadline.
Hope you can find a way to do what you want tho. I'm going in that direction soon but all I need is 500ms updates.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Please don't post the same question on multiple forums. It can be a waste of time when people don't realize a question has already been answered. Post followups to this thread here. Thanks...


"I'm not back." - Bill Harding, Twister
 
GeeCON Prague 2014
 
subject: Realtime quotes