aspose file tools*
The moose likes Java in General and the fly likes Chat application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Chat application" Watch "Chat application" New topic
Author

Chat application

Jothi Pandyan
Greenhorn

Joined: Sep 11, 2000
Posts: 11
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

Joined: Nov 07, 2000
Posts: 621
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

Joined: Sep 11, 2000
Posts: 11
hi sean
thanks alot
the information provided, proved a lot useful to me.
thanks once again
mohit joshi
Ranch Hand

Joined: Sep 23, 2000
Posts: 243
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

Joined: Nov 10, 2003
Posts: 1
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 ?
 
 
subject: Chat application