Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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

 
Ranch Hand
Posts: 42
Hibernate Java Oracle
  • Mark post as helpful
  • send pies
  • 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
Sheriff
Posts: 38561
654
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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 Java Oracle
  • Mark post as helpful
  • send pies
  • 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.
 
Saloon Keeper
Posts: 4744
117
  • Mark post as helpful
  • send pies
  • 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 Java Oracle
  • Mark post as helpful
  • send pies
  • 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 Java Oracle
  • Mark post as helpful
  • send pies
  • 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
Saloon Keeper
Posts: 4744
117
  • Mark post as helpful
  • send pies
  • 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 Java Oracle
  • Mark post as helpful
  • send pies
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!