Implementing The Servant (Cont.) // randomally return a boolean result. virtual CORBA::Boolean isTheWorldSafe(); // prints out the given prompt, reads a message // from standard input, and returns that to the // caller. the function's return value is the // length of the returned string. virtual CORBA::Long readMessage(const char* prompt, CORBA::String_out message); private: PortableServer::POA_var myPoa; }; Note that we supply the servant with a pointer to its POA during its creation. This is not mandatory, but might help implement various operations in a real application.