1 package com.freemindcafe.rmi.sample3.server;
3 import java.rmi.registry.LocateRegistry;
4 import java.rmi.registry.Registry;
8 public static void main(String[] args)
throws Exception{
12 registry=LocateRegistry.getRegistry(9999);
16 registry=LocateRegistry.createRegistry(9999);
19 registry.bind(
"rmi://localhost/rmi-sample3", Hello);
20 System.out.println(
"Addition Server is ready.");