A sample object implementation of the preceding client program is as follows:
package org.admin.hr.employee;
import org.omg.CORBA.*;
public class RegisterImpl extends RegisterPOA {
private String name;
RegisterImple(String name){
this.name = name;
}
public String register() {
return "Employee " + name + ", is now registered”;
}
}
Compile the preceding impl class using the following command:
prompt> javac RegisterImpl.java