For Programmers: Free Programming Magazines  


Home > Archive > Java Help > April 2007 > Applet/Servlet communication: what are your thoughts on this?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Applet/Servlet communication: what are your thoughts on this?
phillip.s.powell@gmail.com

2007-04-25, 7:08 pm

I've been reading up on Applet/Servlet communication (
http://www.unix.org.ua/orelly/java-...let/ch10_01.htm ) in the
hopes of someday updating my very strange chatroom (an amalgam of JSP,
PHP, servlets, XML and stuff I can't even identify), and I noticed
that there are several methods for passing data between client applet
and remote servlet including:

1) HTTP
2) non-HTTP Socket
3) RMI

I also noticed the advantages and divantages of using each one and
honestly, I can't decide what is best and what should I avoid.

The basic premise is a simple messaging chatroom applet with HTML-
enabled messages (with limited HTML capability for obvious security
reasons) passed onto a remote host servlet back and forth until you're
done.

What experiences might you have had that would ensure that the best-
practice method would be either HTTP, non-HTTP Socket or RMI?

Even moreso, should I even be using applets at all?

Just wondering at this point, nothing implemented as of yet

Thanks
Phil

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com