



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Instructions for project 5 in the cmsc 433 - programming language technologies and paradigms course, focusing on java remote method invocation (rmi). Students are required to create a peer-to-peer messaging system that can connect to a well-known host, send and receive messages, and handle failed clients. The document also covers the basics of an rmi application, including interfaces, implementation, and registration.
Typology: Study Guides, Projects, Research
1 / 6
This page cannot be seen from the preview
Don't miss anything!




public interface Compute extends Remote { RemoteException;^ Object^ executeTask(Task^ t)^ throws }
public interface Task extends Serializable { Object execute(); }
public ComputeEngine() throws RemoteException { super(); // (not necessary) }
if (System.getSecurityManager() == null) { System.setSecurityManager(new RMISecurityManager()); } String name = “//” + args[0] + “/Compute”; Compute comp = (Compute) Naming.lookup(name); Pi task = new Pi(Integer.parseInt(args[1])); BigDecimal pi = (BigDecimal) comp.executeTask(task);