For my university project, We have to create a client / server application in java. Which should be capable of having multiple clients running from same server at any 1 time.

I chose to create a Electorinic POS system (Computerised till).

When you start the till (client) it connects to the transaction server (server), and waits on user to login to till.

If I start up more than 1 till, The first 1 starts up correctly, however the subsequent ones, fail to connect to the server. (Well they connect but dont connect), as in the server fails to authorise it, and it refuses to do anything.

If I then close the first till down, The second till will start up, if I close that, the third one starts up. and so on.

I am assuming this is because I havn't allowed for multiple simultaneous connections (I made the assumption, this would happen automatically - Im too use to VB ).

Having done some research I have concluded this is achieved using threads (Of which I have no idea what they are).

I would appreciate it, if anyone could explain, or even take the time to point me in the right direction, or show me how this is achieved.

Thank you in advance