This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Applets and the fly likes Servlet push to Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Servlet push to Applet" Watch "Servlet push to Applet" New topic
Author

Servlet push to Applet

Javad Rashidi
Ranch Hand

Joined: Feb 13, 2011
Posts: 34

How to create servlet that push data to applet? or how to implement server pushing between servlet and applet?


http://www.myviwo.com
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Can't really be done using a Servlet (unless you implemented your own protocol and Servlet implementation I suppose). Normal HTTP Servlets use HTTP which does not support push. You can use technologies like Comet to get push like behaviour with HTTP, but since you are using an Applet this is unnecessary. You need to use socket programming rather than Servlets.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Javad Rashidi
Ranch Hand

Joined: Feb 13, 2011
Posts: 34

Hi and tanx for your replay Paul.
can i use RMI instead socket programming?
 
 
subject: Servlet push to Applet