Win a copy of Svelte and Sapper in Action this week in the JavaScript 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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
  • 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: 40200
816
Eclipse IDE VI Editor Java
  • 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 Oracle Java
  • 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: 6594
161
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • 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 Oracle Java
  • 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 Oracle Java
  • 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: 6594
161
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • 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 Oracle Java
  • 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
 
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic