00001 // -*- C++ -*- 00002 // 00003 // $Id: Method_Request_Updates_T.inl 84563 2009-02-23 08:13:54Z johnnyw $ 00004 00005 #include "tao/debug.h" 00006 #include "orbsvcs/Notify/Peer.h" 00007 00008 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00009 00010 template <class SEQ, class PROXY, class SEQ_PARAM, class PROXY_PARAM> ACE_INLINE int 00011 TAO_Notify_Method_Request_Updates_T<SEQ, PROXY, SEQ_PARAM, PROXY_PARAM>::execute_i (void) 00012 { 00013 if (this->proxy_->has_shutdown ()) 00014 return 0; // If we were shutdown while waiting in the queue, return with no action. 00015 00016 try 00017 { 00018 TAO_Notify_Peer* peer = this->proxy_->peer(); 00019 00020 if (peer != 0) 00021 { 00022 peer->dispatch_updates (this->added_, this->removed_); 00023 } 00024 } 00025 catch (const CORBA::Exception& ex) 00026 { 00027 if (TAO_debug_level > 0) 00028 ex._tao_print_exception ( 00029 "TAO_Notify_Method_Request_Updates::execute error sending updates\n"); 00030 } 00031 00032 return 0; 00033 } 00034 00035 TAO_END_VERSIONED_NAMESPACE_DECL