aspose file tools*
The moose likes Servlets and the fly likes Chat Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Chat Application" Watch "Chat Application" New topic
Author

Chat Application

Subhash Yadav
Greenhorn

Joined: Feb 09, 2013
Posts: 5
do we require a Socket connection to create chat application in JSP?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12674
    
    5
JSP are used only for HTTP connections which the servlet container controls.

There is no intersection between the world of JSP and the world of socket programming.

Bill

Java Resources at www.wbrogden.com
Subhash Yadav
Greenhorn

Joined: Feb 09, 2013
Posts: 5
Thanks for the reply.
I am creating a chat application where users can communicate in group. So what is the way that more than 2 people would communicate. In short, I want to exchange information between two or more sessions. So what is the way to achieve it. thanks.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12674
    
    5
Since we are in a Servlets forum, I assume you want your clients to be using browsers. Questions about building chat systems with HTTP and browsers have come up frequently in this forum so do a search.

IF you are not talking browsers as clients, then a message service would be a reasonable core.

In general, before you write ANY code, make lots of diagrams showing how chat messages and chatting clients are handled - this should clarify what you need to program.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Chat Application
 
Similar Threads
Why we need Distributed System? thx!
calling application through servlet
Chat Connector
Chat functionality
WA #1.....word association