How to build a high quality Client/Server Java application – a Java Chat Client/Server example Part5

April 5th, 2006

Part1 , Part2 , Part3 , Part4 ,Part5

Now that we have tested out Sockets and threads, we need to combine the two to make a concurrent server . A concurrent sever can handle more than one client at a time. It works like the old time phone operators. It gets a connecting client call, then it creates a thread to handle that call, and then goes back to listen for the next caller.

Concurrent Sever example

Client 3

Server 3

Run server and then start two instances of the client3. You should see in the server console that it is handling both users concurrently, hence a concurrent server.


Java,/client/server,course,chat,sockets,network,swing

2 Responses to 'How to build a high quality Client/Server Java application – a Java Chat Client/Server example Part5'

  1. Great Tasting Java » Blog Archive » How to build a high quality Client/Server Java application - a Java Chat Client/Server example Part3 says:

    April 5th, 2006 at 12:48 pm

    [...] , Part2 , Part3 , Part4,Part5 [...]

  2. Great Tasting Java » Blog Archive » How to build a high quality Client/Server Java application - a Java Chat Client/Server example Part4 says:

    April 5th, 2006 at 12:49 pm

    [...] Part1 , Part2 , Part3 , Part4 ,Part5 [...]

Leave a Comment