Listing 4: CORBA IDL for CORBA-based system

//
// File: fortune.idl
//
module Fortune {

  interface Teller {

     string 
     getMessage();

     long 
     getLuckyNumber();

  };

  interface Factory {

     exception outOfBounds {};

     Teller 
     getFortune(in short month)
        raises (outOfBounds); 
  };

};
//End of File