1 23 24 package rmi.srv; 25 import org.objectweb.fractal.rmi.registry.NamingService; 26 import org.objectweb.fractal.rmi.registry.Registry; 27 28 import org.objectweb.fractal.util.Fractal; 29 30 public class ServerLauncher { 31 32 public static void main (final String [] args) throws Exception { 33 System.setSecurityManager(new SecurityManager ()); 35 36 NamingService ns = Registry.getRegistry(); 37 ns.bind("server-host", Fractal.getBootstrapComponent()); 38 39 System.err.println("Server ready."); 40 } 41 } 42 | Popular Tags |