• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

APIs/Strategy to be used in developing web-based chat Application using Servlets.

 
Ranch Hand
Posts: 42
Hibernate Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am developing a Chat Application that is similar to Gmail Chat and also want to add feature like Chat rooms.
I came to know that some firewalls do not accept Socket Connections so i want to develop using Servlets.
Is my approach right if not,Can anyone help me by suggesting the strategy to implement the Web-based Chat application using Servlets.
Please suggest which APIs will be used to develop the web-based Commercial Chat Application.

Thank you.
 
author & internet detective
Posts: 41502
881
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jack,
Welcome to CodeRanch!

You'll want to explore AJAX so you can get new chats/send out chats without refreshing the page.
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
You can google ajax icepush that may be usefull for creating chat application using servlet.
 
Jack Numen
Ranch Hand
Posts: 42
Hibernate Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jeanne,
The issue is not about refreshing the Page/using AJAX.Its about sending messages to a specified user on selection(just like GMAIL) from a user-List.
I explored socket programming where for each user a thread is created and the user is also assigned with a port number internally.This model limits the number of connections.
So i am thinking of exploring in JMS since Scoket Programming has its own limitations.
So i request if anyone could help me in building a Chat application (similar to Gmail one- one)using JMS(if feasible commercially).

Thanks and Regards
Jack.
 
Bartender
Posts: 7488
171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What kind of client do you have in mind - web browser? Java desktop app? Native app? Something else?
 
Jack Numen
Ranch Hand
Posts: 42
Hibernate Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tim,
Currently Its Web Browser in future we develop native App of the same.

Thank you,
Jack
 
Jack Numen
Ranch Hand
Posts: 42
Hibernate Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Can anyone suggest which API to use for a Chat Application among these.
1.Java Mail API
2.Sockets
3.RMI
4.JMS

I am looking for a Chat application that has the same features as that of Gmail /Facebook Chat (i can handle Ajax/Jquery post calls but i need which api to use)...but i wanna develop it using Java.


Thanks
Jack
 
Tim Moores
Bartender
Posts: 7488
171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How (and why) would you use any Java APIs (like the ones you mention) if the client is a web browser?
 
Jack Numen
Ranch Hand
Posts: 42
Hibernate Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tim,
I need to embed the Chat in one of my Java(portal) Application so i prefer using Java Apis like those i mentioned to send Chat messages from one user to another user.
On top of that i am still not clear how to proceed developing my chat application for my web/portal application.

Thank you,
Jack
 
reply
    Bookmark Topic Watch Topic
  • New Topic