Solved

java based chat system

Posted on 2004-10-20
6
235 Views
Last Modified: 2010-04-01
Hi,
I am trying to build a java based chat system, basically i have not done this before and i would like to know from top to bottom what i need to do and how to go about doing it, what tchnology i need to use or if i need a different programming language to program a chat system.
My chat system should have a main window bywhere all the users could chat in a public environment and a private one to one window if they so choose.

As i am a student, this is very important to me as it is the subject of my last year project.
Thank you.

 
0
Comment
Question by:chris_black23
  • 3
  • 2
6 Comments
 
LVL 13

Expert Comment

by:petmagdy
ID: 12361082
Will You need to build a Chatting server first, I would like u to take a look at an open source chatting engine called jabber, you will find it at:

http://www.jabber.org


It has differnet Server implmentations and different clients thay was working on a Java server implementation
0
 
LVL 35

Expert Comment

by:TimYates
ID: 12367729
Do you mean a web-based chat server?  So you can chat using JSP webpages only (no applets)?

Have a look at this:  http://www.javazoom.net/jzservlets/jchatbox/jchatbox.html

It should give you some ideas of what is required :-)

Good luck with your project!!

Tim
0
 

Author Comment

by:chris_black23
ID: 12371587
Thanks Tim,
Have you done this before? would you like to give me in your own words where to start and the whole picture if you can.
THX
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 35

Accepted Solution

by:
TimYates earned 500 total points
ID: 12371662
The major problem you are going to have with a web-based chat system, is that web-pages are a "pull technology".  

That is, they can fetch data whenever they want, but the server cannot just send them data as and when it fancies.  

So it becomes hard to know if a user is actually there or not...you have to wait for them to ask for the page again, and then you know they are still there...

Basically, at its heart, you will have a list of users per room.  And each of these users will build up a list of what has been said since the last time they requested the information.

If they time-out (ie don't request the information for more than 2 mins), then you can remove them from the list

When they do request the information for that room, you can clear their list of things, and send the data to them (where the browser can display it)...

I'd start with a dead simple implementation of a User, a Room (which is a list of users), and a mechanism for the room to send a message to each user in that room (and store it in a list in that user)

Then you should be able to test that the basic mechanism works...

I haven't written one of these before, no...  but the concept isn't that hard...

Have a look at that chat server, and do a quick search on google for others, as they should give you ideas about what is needed, and what is possible :-)

Good luck with it!

Tim
0
 

Author Comment

by:chris_black23
ID: 12379222
Thanks TIM, that helped a lot!!
0
 
LVL 35

Expert Comment

by:TimYates
ID: 12379227
:-)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
A procedure for exporting installed hotfix details of remote computers using powershell
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now