Previous Table of Contents Next


22.8.3 Example


   The example IDL causes the generation of the following additional IDL when asynchronous operations are to be used. This IDL is “real? in that the interfaces described here are CORBA objects. However, the generation of stubs for these interfaces is not required, as no client ever invokes these operations remotely in this model. The operations are invoked directly by the messaging-aware ORB when a reply becomes available.

   // AMI implied-IDL of ReplyHandler // for original example IDL defined in Section 22.5 interface AMI_StockManagerHandler : Messaging::ReplyHandler {

   void get_stock_exchange_name( in string ami_return_val); void get_stock_exchange_name_excep( in Messaging::ExceptionHolder excep_holder);

   void set_stock_exchange_name(); void set_stock_exchange_name_excep( in Messaging::ExceptionHolder excep_holder);

   void add_stock( in boolean ami_return_val); void add_stock_excep(

   in Messaging::ExceptionHolder excep_holder); void edit_stock(); void edit_stock_excep(

   in Messaging::ExceptionHolder excep_holder);

   void remove_stock( in double quote); void remove_stock_excep( in Messaging::ExceptionHolder excep_holder);

   void find_closest_symbol( in boolean ami_return_val, in string symbol);

   void find_closest_symbol_excep( in Messaging::ExceptionHolder excep_holder);

   void get_quote( in double ami_return_val); void get_quote_excep( in Messaging::ExceptionHolder excep_holder); };