Solved

Java Chat

Posted on 2004-08-04
8
635 Views
Last Modified: 2006-11-17
Hi i'm working in a new project chat
i want some help in that the idea not clear in my mind
could any one describe me the Architucure for chat
Server/Client what the client applet should do and what
is the server i want to use Pure java for client and server
could any one give me a sample or something like that

also i'll include voice chat so if also any one could help me with just a start in that it will be gr8 and thanks for u........
0
Comment
Question by:hema3i
  • 5
8 Comments
 
LVL 30

Accepted Solution

by:
Mayank S earned 150 total points
ID: 11717684
Hi Hema,

Is it necessary for you to do this using Applets? You'll face some security restrictions while doing that in Applets, for which you might need to sign the Applet.

Is this supposed to be something used over the Internet or just within a LAN?

How much experienced are you in Java programming and what's your experience with sockets?

If you're a beginner, you should go through:

http://java.sun.com/docs/books/tutorial/

Mayank.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11717753
You can build the UI in Swing. Prefer to use something like JFrame, JEditorPane, etc and not applets.

http://java.sun.com/docs/books/tutorial/uiswing/index.html

http://java.sun.com/docs/books/tutorial/uiswing/learn/index.html

Networking basics:

http://java.sun.com/docs/books/tutorial/networking/

You'll need to look into sockets.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11717761
If you want to use a DB for storing user-information, you should look into the tutorial for JDBC as well:

http://java.sun.com/docs/books/tutorial/jdbc/
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 30

Expert Comment

by:Mayank S
ID: 11717789
Socket examples:

http://www.javaalmanac.com/egs/java.net/CreateServerSocket.html?l=rel

Have a look at the related examples as well.

The server will need to be multi-threaded:

http://java.sun.com/docs/books/tutorial/essential/threads/index.html
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11717830
0
 

Expert Comment

by:ctjoumas
ID: 11719257
A good place to start with a server and a client is: http://www.cn-java.com/download/data/book/socket_chat.pdf

For some reason the domain is giving a Forbidden error.  If you see that, try again later and it should be up.  It is a very good resource and helped me out immensely in getting my java chat application off the ground.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

831 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