This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Servlets and the fly likes communication problem in chat application.....Please help!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "communication problem in chat application.....Please help!!" Watch "communication problem in chat application.....Please help!!" New topic
Author

communication problem in chat application.....Please help!!

Rasmeet Devji
Greenhorn

Joined: Dec 08, 2000
Posts: 17
Hi all,
I have developed a simple chat application based on http, i.e.
using applet and servlets and a bit of html.
Now i need to broadcast the messages to members sitting in a particular chat room. This is where my problem lies.
I got no idea as to how i could redirect the messages to selected members of the chat app without using rmi or sockets.
The chat application is based on the example given in O'Reilly's
Java Servlet Programming.
Any help is welcomed and will be appreciated.
Thanks everyone !
Bye.
Danny Mui
Ranch Hand

Joined: Dec 14, 2000
Posts: 42
That's the problem with http-based applications. It's a connectionless protocol. You're right, I do not think there is any way to do it via server-side push via http (well there is, that book shows a server-side push but it'll spawn lots of threads). So in the end, most http-based apps are client-polling apps. I looked at Sun's JSDT (shared data something) and maybe that's the solution but it seemed too complicated for me!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: communication problem in chat application.....Please help!!