This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet push to Applet
 
Similar Threads
Communication between servlet and applet
how to communicate Applet to Servet
POST method
how to startup servlet from applet
how to startup servlet from applet code