FileDocCategorySizeDatePackage
ConvertClient.javaAPI DocExample1973Thu Mar 16 11:52:42 GMT 2000None

ConvertClient

public class ConvertClient extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        System.setSecurityManager(new RMISecurityManager());

        // Find the service by its interface type
        Entry attribute = new Location("4", null, null);
        ServiceFinder sf =
                 new ServiceFinder(ConvertService.class, attribute);
        ConvertService cs = (ConvertService) sf.getObject();

        // Now invoke methods on the service object
        System.out.println(cs.convert(5));