Re: Java Applet vs. AJAX for continuous data
- From: Laser Lips <loudsphiers@xxxxxxxxx>
- Date: Tue, 29 Apr 2008 08:37:24 -0700 (PDT)
Depends what you mean by 'continuous connection'.
I wrote a Java Server along with an Applet which allows continuous
connections using Sockets. I also wrote the Server to allow multiple
connections which is what you will have to do when you write yours
else only one applet can connect at any one time.
If your using Ajax then you can give the impression your continuously
connected by querying the server in short intervals, but your never
continuous connection, your just calling a php/asp/what ever file on
the server and getting hte response.
In my case I chose Java sockets because I built a chat room. I didn't
use a database which meant the server updated all the users connected
automatically using the open sockets which require a Constant open
connection. e.g. someone said something in the room, the message was
sent to the server, the server updated all open connections with the
new words.
Unless you need major two way communication I would use Ajax. You
could Use JSON as your data transfer method or just plain old XML
Have fun!
Graham
.
- References:
- Java Applet vs. AJAX for continuous data
- From: Borked Pseudo Mailed
- Java Applet vs. AJAX for continuous data
- Prev by Date: Re: putting data into js vars
- Next by Date: Re: What happened to my code
- Previous by thread: Re: Java Applet vs. AJAX for continuous data
- Index(es):
Relevant Pages
|