Problem 1
Fill in the blanks in each of the following statements: a) Name three required services for running Jini services and clicnts: __________,__________and _________. b) Two ways to discover lookup services are ________ and _________ c) To generate the stub file for a remote object, use ________ d) A service proxy that is exported to the remote client must implement interface________ e) Service providers use________to describe a service. Jini clients use__________to find a matching service.
Problem 2
State whether each of the following is true or false. If false, explain why. a) Unicast discovery is also known as locator discovery. b) The JoinManager can discover lookup services, register a service and renew a service's lease. c) Class LookupDiscoveryManagex can perform only unicast discovery. d) Jini requires only the RMI activation daemon (rmid) and a Web server. e) Jini clients must have all the \(.\) class files for a Jini service in the local CLASSPATH.
Problem 5
Write a currency exchange service using Jini technology. This currency exchange service simply does one function: It exchanges the currency of one country to the currency of another country. The exchange rate can be dynamically loaded from an on-line resource or can be just statically loaded from a file. Create the public interface, service proxy, back-end interface and service implementation.