Servlets Supports network communication VIA Sockets, RMI and even CORBA.
but in our case Socket communication is the best and easiest.
this is how it will work in my case.
PHASE 1:
1. I will have a servlet running on server.
2. It will have threads waiting for socket connection.
3. When applet requests servlet to open a socket, a socket communication is
established between them, by that thread.
4. Now, number of clients are connected to servlet, via sockets.
PHASE 2:
in my case:
1. there will be a chat window, where ppl could see wach other
2. a person will request the other person to start a game with it,
3. as soon as the other person accepts its request.
4. new game (in Java3D) will be instantiated between the two players.
5. Servlet will perform the job of communication between the two players,
via there sockets.
in server communication there does not exists the traditional internet
concepts of push and pull.
it beleives in constant streaming. here u put something, and there it will
be reached at the very moment. and vice versa.
For more info on server communication, study APIS: java.io
fahad
this
Eelco van den Berg <[EMAIL PROTECTED]> on 02/07/2000 10:26:58 AM
To: Fahad Aziz/pk/Netsol
cc:
Subject: Re: [JAVA3D] Hello
Fahad,
> I am using Java3D to develop the game and JServlets+Socket Communication
> to provide Multiplayer support
I'm very interested in hearing about your project. I am working on a
collaborative CAD-modelling system, and I am trying to find the best
solution for implementing network communications.
How do you serve multiple clients with one servlet, and where do you keep
shared resources? I understood from the online tutorials at Sun, that
Servlets could only use http-methods, and server-side scripting. This
would not be sufficient for my project, since communication takes place in
both directions, unicast and multicast. In your case, how does the server
update one client, if the other client changed something?
Furthermore, how did you solve the security issues regarding applets in
webbrowsers, communicating via sockets?
Yours sincerely,
Eelco van den Berg
Department of Computer Graphics & CAD/CAM
Delft University of Technology
The Netherlands.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".