A Chat Room

Hey all.
Basically, I'm interested in coding a Chat Room (to run in a browser).

Now, firstly, I HATE Applets.. So, is it possible to do a Chat Room in JSP?  (I can think of a way to do it, but that would be great if possible).

If not though, and I end up getting stuck with having to use an Applet :( lol, could anyone explain to me how applets communicate with eachother.

For example, I've been on chat rooms (done using an applet), that doesn't require you giving it persmission to create connections else where... How do applet chat rooms work???

Thanks in advance! =)
[r.D]
LVL 9
DrWarezzAsked:
Who is Participating?
 
CEHJCommented:
>>lol, could anyone explain to me how applets communicate with eachother.

In the case of the chat room is that they probably don't ;-)

What will probably happen is that each applet communicates with a central server, which handles forwarding messages to each client applet. The advantage of using an applet (over an application) is that no installation is required and therefore distribution is a cinch. JSP is not really applicable as it doesn't really afford two-way communication
0
 
DrWarezzAuthor Commented:
>"How do applet chat rooms work???"
Do they create files on the server, and keep checking it for new messages, then update it to the chat room??????

ta
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
cpa199Commented:
They may well work using remote objects of some type (eg RMI). I haven't done one myslef but this is my guess.

eg.

You type a line of text and press enter, this then calls the sendText method on a remote object thus executing this code on the server and then using RMI callbacks gives this info to all the registered clients. For more info on RMI :

http://java.sun.com/products/jdk/rmi/index.jsp
http://www.ccs.neu.edu/home/kenb/com3337/rmi_tut.html

Hope that helps

Carl
0
 
cpa199Commented:
Oh and applets are very powerful things. I personally love them, but I guess I have to working with them all the time :)

Carl
0
 
kiranhkCommented:
check out this

http://www.vijaymukhi.com/  in this go to projects--->Java Chat Server and Chat Client
0
 
DrWarezzAuthor Commented:
Wow. Thanks everyone.

Tim, I've downloaded JChatBox, how do I then set it all up??

I've got Tomcat installed on my machine, what to install where?? :o\  lol

Thanks alot,
[r.D]
0
 
CEHJCommented:
I must say the JChatBox demo certainly doesn't work for me, either on IE or Netscape
0
 
DrWarezzAuthor Commented:
Oh. Okay :o\

=)
0
 
CEHJCommented:
Servlet-based would have the advantage of no JRE being necessary, but make sure you've got plenty of memory for Tomcat ;-)
0
 
TimYatesCommented:
>  I must say the JChatBox demo certainly doesn't work for me, either on IE or Netscape

Yeah, all the chat rooms have been deleted :-/

Bah!
0
 
objectsCommented:
> Servlet-based would have the advantage of no JRE being necessary

you still need some form of client, use of servlets is independant of what is used on the client.
and the large majority of java based servers are servlet based anyway.
0
 
DrWarezzAuthor Commented:
Okay, thanks for all the comments everyone.
I'll keep all those comments in mind, as I have a lot of thinking to do ;-)

So -- I shall split the points now, otherwise I'll forget to at all. :-)

Thanks again,
[r.D]
0
 
TimYatesCommented:
Have a look at the comments here too :-)

http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_21175850.html

Good luck!!

Tim
0
 
CEHJCommented:
8-)
0
 
cpa199Commented:
Thanks and glad to help :)
0
 
objectsCommented:
(:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.