FileDocCategorySizeDatePackage
ConvertServiceImpl.javaAPI DocExample2326Thu Mar 16 11:52:36 GMT 2000None

ConvertServiceImpl

public class ConvertServiceImpl extends Activatable implements ConvertService

Fields Summary
Constructors Summary
public ConvertServiceImpl(ActivationID id, MarshalledObject data)

        super(id, 0);
    
Methods Summary
public java.lang.Stringconvert(int i)

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

        Properties props = new Properties();
        props.put("java.security.policy", args[1]);

        ActivationGroupDesc agd = new ActivationGroupDesc(props, null);
        ActivationGroupID agi = ActivationGroup.getSystem().registerGroup(agd);
        ActivationGroup.createGroup(agi, agd, 0);

        ActivationDesc ad = new ActivationDesc("ConvertServiceImpl", args[0], null);

        Remote r = (Remote) Activatable.register(ad);
        Naming.rebind("ConvertService", r);
        System.exit(0);