Login: password:
Forgot your password?
2nd assignment
Topic: remote method invocation

Part 1.

Install the Apache web server on your machine. See http://httpd.apache.org/


Part 2.

Follow the Oracle tutorial on Java RMI: http://docs.oracle.com/javase/tutorial/rmi/overview.html

Copy the code, and run everything on your machine.

Part 3-a.

Write your own implementation of an RMI client and server. The exposed method takes only primitive data as input, and returns primitive data. An example could be the following:

A server provides a remote method to add two numbers, and returns the result.

A client asks the user for two numbers, sends the request to the server, gets the response, prints the two numbers and the response.


Personalize the above problem (Examples: change currency, calculate number of seconds mond two dates (represented as integers!), evaluate square root...)
If possible, try to run the client and the server on two different machines using a virtualization program.

Part 3-b.

A “Notebook” is custom class (i.e. a class that you build), which is able to keep a set of strings (an arbitrary number of strings), and to print them.

A server shows a remote method “sign” with a parameter of type Notebook. The method “sign” adds a signature to the Notebook.  There will be two instances of the server (they may run on the same machine).

A client will create a Notebook, and ask the two servers to sign it. At the end the client prints the content of the Notebook.

If possible, try to use two different (virtual) machines: one for the client and one for the two the servers.

Deadline Oct . 2, 2015

You have to deliver:
- source code
- a report.

The report must have the following structure:
  •   Title Page
    • containing date, title (Extending the simple web server),  your name)
  • Introduction
  • Implementation
    • Describe how you implemented the solution
  • Deployment
    • Short description of the main points of your code
  • Comments and notes (optional)
    • any problems encountered during the project development
    • Any other comment
zip the code, and send the zip and the report via e-mail
to : marco.ronchetti at unitn.it
with subject: WEBARCH - 2nd WEEK ASSIGNMENT DELIVERY

DO NOT USE THIS SUBJECT TO ASK QUESTIONS, BUT ONLY FOR THE DELIVERY!!!




powered by segue
segue_logo