Question: Using Java RMI, write an application for a prototype opinion poll system. Assume that only one issue is being polled. Respondents may choose yes, no
Using Java RMI, write an application for a prototype opinion poll system. Assume that only one issue is being polled. Respondents may choose yes, no or dont care. Write a server application to accept the votes, keep the tally (in transient memory), and provide the current counts to those who are interested.
Write the interface file first. It should provide remote methods for accepting a response to the poll, providing the current counts (e.g., 10 yes, 2 no, 5 dont care) only when the client requests it.
Design and implement a server to
Export the remote methods, and
Maintain the state information (the counts). Note that the updates of the counts should be protected with mutual exclusion.
Design and implement a client application to provide a user interface for accepting a response and/or a request, and to interact with the server appropriately via remote method invocations.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
