Java remote method invocation: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
m Dating maintenance tags: {{Clarify-span}}
Example: fixed various coding errors and removed unnecessary SecurityManager
Line 35:
 
public RmiServer() throws RemoteException {
super(0); // required to avoid the 'mic' step
}
 
Line 43 ⟶ 44:
public static void main(String args[]) {
System.out.println("RMI server started");
 
// Create and install a security manager
if (System.getSecurityManager() == null) {
System.setSecurityManager(new RMISecurityManager());
System.out.println("Security manager installed.");
} else {
System.out.println("Security manager already exists.");
}
 
try { //special exception handler for registry creation
Line 109 ⟶ 102:
}
 
public static void main(String args[]) throws Exception {
// Create and install a security manager
if (System.getSecurityManager() == null) {
System.setSecurityManager(new RMISecurityManager());
}
RmiClient cli = new RmiClient();