FileDocCategorySizeDatePackage
ConvertServiceImpl.javaAPI DocExample2268Thu Mar 16 11:52:46 GMT 2000None

ConvertServiceImpl

public class ConvertServiceImpl extends UnicastRemoteObject implements ConvertServiceProxy

Fields Summary
Constructors Summary
public ConvertServiceImpl()

    
Methods Summary
public java.lang.Stringconvert(int i)

        return new Integer(i).toString();
    
public static voidmain(java.lang.String[] args)

        System.setSecurityManager(new RMISecurityManager());

        // Start listening for lookup services
        String[] groups = new String[] { "" };
        LookupDiscovery reg = new LookupDiscovery(groups);

        // Create the instance of the service and register it with all
        // discovered lookup esrvices
        ConvertServiceImpl csi = (ConvertServiceImpl) new ConvertServiceImpl();
        ServerListener sl = new ServerListener(reg, csi);
        reg.addDiscoveryListener(sl);