This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
It can be assumed like the scenario of facebook or google chat...
can i use apache tomacat server for this purpose....or will have to code the server that will run on another server...
just help me please
I would have thought that after all these years, and everybody and his uncle trying to write a chat server, that by now it would be possible to get a pre-written chat server and install it somewhere. Are you sure you want to write yet another chat server from scratch instead of just getting one which has already been written?
yes i want to write it again from scratch...
please help me how to begin...
see i know servlet programming and net programming...but how the application would be constructed...that's what i want to know
There is to get you started. It's not code, but it'll get you started. If you need a basic example of a client or server, I will give you it. I started making my first one when I found a SUPER simple server/client program (source code) and built off of that.
EDIT : This is on the server. On the client, you need to do something like this :
EDIT (2) : Make the server an Application. Make the client an Application or Applet. Applet will be harder (permissions, signing the JAR files, put it on a website with bandwidth, etc), but more convenient for the user. Application is easier, but less convenient for the user.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)