sasi krishna
sasi krishna

Reputation: 87

How to proceed for making chat application using jsp's and servlets

I developed a chat application using java.But now my challenge is build a chat app in web application.I dont how to proceed.Can we use sockets as done in java.

Please give me a suggestion to get through this.

Thanks in Advance.

Upvotes: 1

Views: 5893

Answers (1)

Denys Séguret
Denys Séguret

Reputation: 382092

I recommend you to use websockets as they're really efficient to exchange in real time (push instead of pull) data between a server and html clients. They're bidirectionnal and roughly equivalent to the sockets you're used to (hence their name). Client-side, they use the same callback based logic than ajax clients but that doesn't mean they're not fast.

Here's a tutorial : http://java.dzone.com/articles/creating-websocket-chat

Googling "java chat websocket" would give you other results.

Upvotes: 4

Related Questions