You are asked to build alternative implementations of a simple stock information system. The stock information system allows multiple users to retrieve the current values of shares being traded at the stock exchange. This system is a typical example of a client-server system, in which a client interacts with the server by means of a request-response communication pattern. In order to bridge the distance between a client and the server, one of your implementations should be based on **Java RMI** and the other should be based on **Java Servlets/JSP**. In addition, you are asked to answer some questions concerning your implementations.
You are asked to implement an 'incomplete' Stock Information system that supports only the *Request share value* service element.
• information about shares of companies should be retrieved from table shares of database in a MySQL database.
• the information in table shares may be updated at any time in a database form.
• introduce a class called Stock, which should be used by your implementation to represent the relevant information about the shares of a single company at some point in time. Servlets
Implement the client and server entities of the Stock Information system, using Servlets
Implement the client and server entities of the Stock Information system, using RMI as interaction system between these entities.
Implement the client and server entities of the Stock Information system, using JSP
Implement the client and server entities of the Stock Information system, using HTTP as interaction system between these entities. Either use Servlets, or JSP, or a combination of both.
extend **ONE** of the implementations such that the Stock Information system also supports the *Periodical update* service element. Be aware that your server implementation may have to support multiple clients simultaneously, which may each request a different update interval.
Documentation and comments obligatory.
Linux Or Windows (Tomcat server preferred)