permaculture playing cards*
The moose likes Servlets and the fly likes APIs/Strategy to be used in developing web-based chat Application using Servlets. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "APIs/Strategy to be used in developing web-based chat Application using Servlets." Watch "APIs/Strategy to be used in developing web-based chat Application using Servlets." New topic
Author

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

Jack Numen
Ranch Hand

Joined: Nov 09, 2011
Posts: 42

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.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30076
    
149

Jack,
Welcome to CodeRanch!

You'll want to explore AJAX so you can get new chats/send out chats without refreshing the page.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Miku Ranjan
Ranch Hand

Joined: Oct 11, 2011
Posts: 98
Hi,
You can google ajax icepush that may be usefull for creating chat application using servlet.
Jack Numen
Ranch Hand

Joined: Nov 09, 2011
Posts: 42

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.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
What kind of client do you have in mind - web browser? Java desktop app? Native app? Something else?
Jack Numen
Ranch Hand

Joined: Nov 09, 2011
Posts: 42

Hi Tim,
Currently Its Web Browser in future we develop native App of the same.

Thank you,
Jack
Jack Numen
Ranch Hand

Joined: Nov 09, 2011
Posts: 42

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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Nov 09, 2011
Posts: 42

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: APIs/Strategy to be used in developing web-based chat Application using Servlets.
 
Similar Threads
sample code for chat application
Seeking help abt a Chat application using RMI and Servlets
Messenger In Java?
chat
developing chat server