*
The moose likes Servlets and the fly likes Realtime update 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 » Servlets
Bookmark "Realtime update" Watch "Realtime update" New topic
Author

Realtime update

Andrew Galler
Greenhorn

Joined: Oct 04, 2001
Posts: 11
I'm working on a web-based Stock Quotation application and wanted to have realtime update of both the broker and bid/ask queue. How can I do that? I've tried to write it solely in JApplet but it seems that the performance is quite poor. I've heard that I can do this by EJB which is embedded in the JSP. Does anyone know how it works? or is there any better way to do it?
Thanks in advance.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

EJB's can't do that. JSP's can't do that either. The client must "pull" info because no HTTP server can "push" - by the definition of the HTTP protocol.
It's unlikely that your performance problem is simply because you're using a Java Applet. You need to determine where the true bottleneck is, whether it's in the client, server, or network connection.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Realtime update
 
Similar Threads
How to catch EJB Transaction Timeout?
j2ee
jar won't run outside of IDE: Throws exception: java.lang.NoClassDefFoundError: oracle/jdbc/OracleDr
How can I output realtime system resources to a label or textarea?
design patterns