File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using a Servlet for a chat program

 
Kay Crocker
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wondering if this is possible? Basically allowing two users on different machines to communicate (TCP) but routing through a servlet located on a different server and not on either of the two machines.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure - why not? Plenty of examples using HTTP and browsers, with the servlet keeping track of chat "rooms" and users. There is a simple one in my Servlets and JSP book.
Bill
------------------
author of:
 
Mark Leong
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You certainly can. You can view an example at the following site:
http://www.webappcabaret.com/justtalk/servlet/smallcon.justtalk.userlogin

If you are using Netscape or other browers, might have some problems. I do not have time to debug yet. Seems to be OK with IE which I have used to develop in (mistake).
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic