CORBA

IDL Example

module EmployeeInfoServer {
  interface Employee;
  interface Department;

  exception EmployeeInfoException {
    string message;
  };

  interface Employee {
    unsigned long getId();    
    Department getDepartment();    
    float authorizeCommission(in float saleVolume)
      raises (EmployeeInfoException);
    attribute string name; 
    attribute string ssn;
  };

  typedef sequence<Employee> EmployeeList;

  interface Department {
    unsigned long getId();    
    attribute string name;
    EmployeeList employees();
  };
};

               


José M. Vidal .

10 of 21