Voting Application


Implement the following client/server voting application that supports the following two remote methods:

vote: with two parameters through which the client supplies the name of a candidate (a string) and the voter's number (an integer used to ensure each user votes once only). The voter's numbers are allocated sparsely from the range of integers to make them hard to guess.

result: with two parameters through which the server supplies the client with the name of a candidate and the number of votes for that candidate.

Check also the Multi-Threaded implemenattion.


Implementation using RMI


Implementation using RPC