Java RMI simple client-server application
Posted on 2004-12-01
I need to know how to write a simple java RMI server - client application to play a lottery. The player shuld select 6 distinct numbers in the range 1-100 and wins if any one of those numbers matches the single number generated at random on the server.
The lotto server receives and reads the list of numbers selected by the client, then it checks that the list is valid, if not, it return an error message and if yes, the lottery draw and see if the client has any winning numbers. The server then returns the result to the client.