<?xml version="1.0" encoding="utf-8"  ?>
<rss version="2.0">
	<channel>
		<title>Web Architectures 2015/15 &gt; Assignments &gt; 2nd assignment</title>
		<link>http://latemar.science.unitn.it/segue/index.php?&amp;action=site&amp;site=2016WebArchitectures&amp;section=327&amp;page=1069</link>
		<description></description>
		<lastBuildDate>Thu, 23 Feb 2023 10:00:18 +0100</lastBuildDate>
		<generator>Segue RSS Generator</generator>
		<item>
			<title>Topic: remote method invo...</title>
			<link>http://latemar.science.unitn.it/segue/index.php?&amp;action=site&amp;site=2016WebArchitectures&amp;section=327&amp;page=1069&amp;story=2532&amp;detail=2532</link>
			<guid isPermaLink="true">http://latemar.science.unitn.it/segue/index.php?&amp;action=site&amp;site=2016WebArchitectures&amp;section=327&amp;page=1069&amp;story=2532&amp;detail=2532</guid>
			<pubDate>Wed, 23 Sep 2015 11:16:00 +0200</pubDate>
			<author>Marco Ronchetti marco.ronchetti@unitn.it</author>
<description>&lt;strong&gt;Topic: remote method invocation&lt;br /&gt;&lt;br /&gt;Part 1. &lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;Install the Apache web server on your machine.&lt;strong&gt; See &lt;a href=&quot;http://httpd.apache.org/&quot;&gt;http://httpd.apache.org/&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Part 2. &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Follow the Oracle tutorial on Java RMI: &lt;strong&gt;&lt;a href=&quot;http://docs.oracle.com/javase/tutorial/rmi/overview.html&quot;&gt;http://docs.oracle.com/javase/tutorial/rmi/overview.html&lt;br /&gt;&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;Copy the code, and run everything on your machine.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Part 3-a.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;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:&lt;br /&gt;&lt;br /&gt;&lt;font color=&quot;#0000FF&quot;&gt;A server provides a remote method to add  two numbers, and returns the result.  &lt;br /&gt;&lt;br /&gt;A client asks the user for two numbers, sends the request to the server, gets the response, prints the two numbers and the response.  &lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Personalize the above problem (Examples: change currency, calculate number of seconds mond two dates (represented as integers!), evaluate square root...)&lt;br /&gt;If possible, try to run the client and the server on two different machines using a virtualization program.   &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Part 3-b.  &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;A &amp;ldquo;Notebook&amp;rdquo; 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.  &lt;br /&gt;&lt;br /&gt;A server shows a remote method &amp;ldquo;sign&amp;rdquo; with a parameter of type Notebook. The method &amp;ldquo;sign&amp;rdquo; adds a signature to the Notebook.&amp;nbsp;  There will be two instances of  the server  (they may run on the same machine).  &lt;br /&gt;&lt;br /&gt;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.   &lt;br /&gt;&lt;br /&gt;If possible, try to use two different (virtual) machines: one for the client and one for the two the servers.&lt;br /&gt;&lt;br /&gt;&lt;font color=&quot;#FF0000&quot;&gt;&lt;strong&gt;Deadline Oct . 2, 2015&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;You have to deliver:&lt;br /&gt;- source code&lt;br /&gt;- a report.&lt;br /&gt;&lt;br /&gt;The report must have the following structure:&lt;br /&gt;&lt;ul&gt;    &lt;li&gt;&amp;nbsp; Title Page    &lt;ul&gt;        &lt;li&gt;containing date, title (Extending the simple web server&lt;strong&gt;),&amp;nbsp;&lt;/strong&gt; your name)&lt;/li&gt;    &lt;/ul&gt;    &lt;/li&gt;    &lt;li&gt;Introduction&lt;/li&gt;    &lt;li&gt;Implementation    &lt;ul&gt;        &lt;li&gt;Describe how you implemented the solution&lt;/li&gt;    &lt;/ul&gt;    &lt;/li&gt;    &lt;li&gt;Deployment    &lt;ul&gt;        &lt;li&gt;Short description of the main points of your code&lt;/li&gt;    &lt;/ul&gt;    &lt;/li&gt;    &lt;li&gt;Comments and notes (optional)    &lt;ul&gt;        &lt;li&gt;any problems encountered during the project development&lt;/li&gt;        &lt;li&gt;Any other comment&lt;/li&gt;    &lt;/ul&gt;    &lt;/li&gt;&lt;/ul&gt;zip the code, and send the zip and the report via e-mail &lt;br /&gt;to : &lt;strong&gt;marco.ronchetti at unitn.it&lt;/strong&gt;&lt;br /&gt;with subject:&lt;strong&gt; WEBARCH - 2nd WEEK ASSIGNMENT DELIVERY&lt;br /&gt;&lt;br /&gt;&lt;font color=&quot;#FF0000&quot;&gt;DO NOT USE THIS SUBJECT TO ASK QUESTIONS, BUT ONLY FOR THE DELIVERY!!!&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;</description>
		</item>
	</channel>
</rss>