Tik-76.021 Ohjelmoinnin peruskurssi L2 |
Exercise 5 |
Corba
Write a program that does the same thing as in exercise 4, but using Corba instead of RMI. The resulting client application should look like this (reference application included in the "Exc5Ref" directory):
The date/value data to use is in the file "Exc4DateValues.txt", which is read by the server application. Then the client connects to the server, asks for the DateValueVector and displays the graph obtained.
Hints:
When using Corba, it is not possible to directly pass a DateValueVector object reference to the client since DateValueVector is a Java-specific class. One solution to this is to create an IDL struct that does the same thing as DateValueVector and use this both on the server and the client side. Another solution is to put in the essential methods of DateValueVector straight into the server interface. The second solution is the one that has been used in the reference solution and this is probably the easiest solution when starting off from the solution of exercise 6.
To be returned: