Hi,
I had a problem in HTTP Streamming to track stock quotes in applet. My JSP file thread is continously sending stock information to applet. But applet is not able to receive the data form output Stream. Applet can able to show the data first time, but after two three iterations applet is hanging out. I tested the same JSP through the browser, Browser is able to display the outputstream continously.
i need some help or suggesions regarding this issue..
Can anyone help?
Bala
Discussions
Web tier: servlets, JSP, Web frameworks: HTTP Streamming for stock watcher applet? -URGENT-
-
HTTP Streamming for stock watcher applet? -URGENT- (4 messages)
- Posted by: Bala Subrahmanyam Tubati
- Posted on: September 24 2002 11:30 EDT
Threaded Messages (4)
- HTTP Streamming for stock watcher applet? -URGENT- by brian chan on September 24 2002 12:41 EDT
- HTTP Streamming for stock watcher applet? -URGENT- by Leonard Gurevich on September 24 2002 15:16 EDT
- HTTP Streamming for stock watcher applet? -URGENT- by Bala Subrahmanyam Tubati on September 25 2002 00:31 EDT
- HTTP Streamming for stock watcher applet? -URGENT- by brian chan on September 26 2002 07:23 EDT
-
HTTP Streamming for stock watcher applet? -URGENT-[ Go to top ]
- Posted by: brian chan
- Posted on: September 24 2002 12:41 EDT
- in response to Bala Subrahmanyam Tubati
The URL connection made from your applet to the JSP only stays opened for one fetch. I don't think there's a way to keep the connection alive. Maybe you can try to have a thread in the applet that polls for data by hitting the JSP every N seconds or so. -
HTTP Streamming for stock watcher applet? -URGENT-[ Go to top ]
- Posted by: Leonard Gurevich
- Posted on: September 24 2002 15:16 EDT
- in response to brian chan
-
HTTP Streamming for stock watcher applet? -URGENT-[ Go to top ]
- Posted by: Bala Subrahmanyam Tubati
- Posted on: September 25 2002 00:31 EDT
- in response to brian chan
Hi Brian,
Thank you for your suggesion, I implemented the code to get fresh data to applet with a thread by hitting the JSP for every 1 seconds. This idea is good but this may increase the network traffic, that causes server as well as client michenes are slow down.
Please give me your valueble comments....
Moreover thank you very much for your help.
-
HTTP Streamming for stock watcher applet? -URGENT-[ Go to top ]
- Posted by: brian chan
- Posted on: September 26 2002 07:23 EDT
- in response to Bala Subrahmanyam Tubati
What you should be looking at is a publish-subscribe framework to push data continously to client. For example JMS. This would require the use of java-plugins that include Java 2 features. You also need a J2EE app server that supports JMS.