Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

ajax server design question

Thread view: 
Jimmy - 30 Dec 2005 06:05 GMT
I am going to write a multi-player board game (I've actually already
written one version, with a java server and VB client).  I'd like the
players to be able to play over the web, through an ajax client.  I
don't know much about ajax yet.  It appears that the XMLHttpRequest (or
whatever it is called) can only generate GET and POST requests through
the http protocol.  In that case, I am going to have to either
a) write a server that understands http (maybe not too hard with java's
built-in classes)
or
b) use servlets w/tomcat or some other framework that will handle the
http for me and have the servlet keep a socket connection to the game
server, which speaks its own protocol.

Which should I go for?  Also, I am concerned about losing some power by
going to http - like the server is not able to initiate contact with
the client (to notify it of moves made by the other player), and there
is no notification if the client shuts down their window (is that
true?).  Is there any better way to accomplish these things than just
having the clients poll the server every 500ms or so?

Thanks for any advice.
khakman - 30 Dec 2005 20:22 GMT
Re: Keeping alive the HTTP connection, see http://www.pushlets.com.
Developers have used this and similar approaches in concert with
TIBCO's AJAX framework called TIBCO General Interface to create a
persistent HTTP connection.

Kevin Hakman,
TIBCO

> I am going to write a multi-player board game (I've actually already
> written one version, with a java server and VB client).  I'd like the
[quoted text clipped - 17 lines]
>
> Thanks for any advice.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.