• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Chat application

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 621
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi sean
thanks alot
the information provided, proved a lot useful to me.
thanks once again
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic