This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Chat application

 
Jothi Pandyan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there
I have developed a chat program thru' applet servlet communication. Now I wish to develop this as a product like msn messenger service, is it possible to do it, if so, How should I proceed
Please tell me, if there are others ways too rather than using applet servlet communication to develop the product.
thanks in advance
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure thing! If you're familiar with RMI or socket-based communication, the construction would be identical except your client applications would be built as desktop apps (that should test to make sure the users has a valid Internet connection established, of course). It would actually be easier because you can avoid a lot of the constaints associated with the jvm security manager. If you're new to this type of distibuted computing here are a good article and how-to to get you started (notice the links to the earler articles - they build up nicely to a full 'RMI' implementation).
http://www.javaworld.com/javaworld/jw-10-1997/jw-10-step.html

Sean
 
Jothi Pandyan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi sean
thanks alot
the information provided, proved a lot useful to me.
thanks once again
 
mohit joshi
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say applet - servlet communication, I suppose you are using Sockets to communicate. Beware that this doesnt work across firewalls. Yahoo messenger is built on HTTP protocol so it works across firewalls.
One solution as explained in Hunters Servlet book is that you can use a tiered approach, First if RMI is functional, you can use that, if that doesnt work then use Sockets, and if that also doesnt work beacuse of firewall, then use HTTPConnection.
In our office a team has developed a http based chat application. It works something like Yahoo HTML chat.
Hope this helps
 
Rahul K.
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by mohit joshi:
When you say applet - servlet communication, I suppose you are using Sockets to communicate. Beware that this doesnt work across firewalls. Yahoo messenger is built on HTTP protocol so it works across firewalls.
One solution as explained in Hunters Servlet book is that you can use a tiered approach, First if RMI is functional, you can use that, if that doesnt work then use Sockets, and if that also doesnt work beacuse of firewall, then use HTTPConnection.
In our office a team has developed a http based chat application. It works something like Yahoo HTML chat.
Hope this helps


Mohit, could u provide more information on how have ur team members used http protocol to broadcast message from server to each and every client connected to the server. Or is it that the client is always polling the server for new messages ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic