1 24 25 package org.objectweb.clif.server; 26 27 28 import org.objectweb.fractal.rmi.registry.NamingService; 29 import org.objectweb.fractal.rmi.registry.Registry; 30 import org.objectweb.fractal.util.Fractal; 31 import java.net.InetAddress ; 32 33 34 43 public class FractalRMIseed 44 { 45 static public void main(final String [] args) 46 { 47 System.setSecurityManager(new SecurityManager ()); 48 try 49 { 50 NamingService ns = Registry.getRegistry( 51 System.getProperty("fractal.registry.host", "localhost")); 52 String name = args.length == 0 ? InetAddress.getLocalHost().getHostName() : args[0]; 53 ns.rebind(name, Fractal.getBootstrapComponent()); 54 System.out.println("Fractal seed " + name + " is ready."); 55 } 56 catch (Exception ex) 57 { 58 throw new Error ("Could not instantiate Fractal seed", ex); 59 } 60 } 61 } 62 | Popular Tags |