diff options
Diffstat (limited to 'TAO/tao/PortableServer/ImplRepoS.cpp')
-rw-r--r-- | TAO/tao/PortableServer/ImplRepoS.cpp | 3294 |
1 files changed, 1878 insertions, 1416 deletions
diff --git a/TAO/tao/PortableServer/ImplRepoS.cpp b/TAO/tao/PortableServer/ImplRepoS.cpp index 85ad80b9ddf..faba83f731e 100644 --- a/TAO/tao/PortableServer/ImplRepoS.cpp +++ b/TAO/tao/PortableServer/ImplRepoS.cpp @@ -15,26 +15,39 @@ // Irvine, CA // USA // http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ // // Information about TAO is available at: // http://www.cs.wustl.edu/~schmidt/TAO.html -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:670 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:619 #ifndef _TAO_IDL_ORIG_IMPLREPOS_CPP_ #define _TAO_IDL_ORIG_IMPLREPOS_CPP_ + #include "ImplRepoS.h" #include "tao/PortableServer/Object_Adapter.h" #include "tao/PortableServer/Operation_Table.h" #include "tao/TAO_Server_Request.h" #include "tao/ORB_Core.h" +#include "tao/Profile.h" #include "tao/Stub.h" #include "tao/IFR_Client_Adapter.h" +#include "tao/Object_T.h" +#include "tao/Basic_Arguments.h" +#include "tao/Object_Argument_T.h" +#include "tao/Special_Basic_Arguments.h" +#include "tao/UB_String_Arguments.h" +#include "tao/Var_Size_Argument_T.h" #include "tao/PortableInterceptor.h" -#include "tao/Profile.h" #if TAO_HAS_INTERCEPTORS == 1 #include "tao/RequestInfo_Util.h" #include "tao/PICurrent.h" @@ -55,7 +68,142 @@ // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:1731 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_arg_traits.cpp:59 + +// Arg traits specializations. +namespace TAO +{ + +#if !defined (_IMPLEMENTATIONREPOSITORY_SERVEROBJECT__ARG_TRAITS_SS_) +#define _IMPLEMENTATIONREPOSITORY_SERVEROBJECT__ARG_TRAITS_SS_ + + ACE_TEMPLATE_SPECIALIZATION + class TAO_PortableServer_Export Arg_Traits<ImplementationRepository::ServerObject> + : public + Object_Arg_Traits_T< + ImplementationRepository::ServerObject_ptr, + ImplementationRepository::ServerObject_var, + ImplementationRepository::ServerObject_out, + TAO::Objref_Traits<ImplementationRepository::ServerObject> + > + { + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_arg_traits.cpp:428 + +#if !defined (_IMPLEMENTATIONREPOSITORY_STARTUPOPTIONS__ARG_TRAITS_SS_) +#define _IMPLEMENTATIONREPOSITORY_STARTUPOPTIONS__ARG_TRAITS_SS_ + + ACE_TEMPLATE_SPECIALIZATION + class TAO_PortableServer_Export Arg_Traits<ImplementationRepository::StartupOptions> + : public + Var_Size_Arg_Traits_T< + ImplementationRepository::StartupOptions, + ImplementationRepository::StartupOptions_var, + ImplementationRepository::StartupOptions_out + > + { + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_arg_traits.cpp:428 + +#if !defined (_IMPLEMENTATIONREPOSITORY_SERVERINFORMATION__ARG_TRAITS_SS_) +#define _IMPLEMENTATIONREPOSITORY_SERVERINFORMATION__ARG_TRAITS_SS_ + + ACE_TEMPLATE_SPECIALIZATION + class TAO_PortableServer_Export Arg_Traits<ImplementationRepository::ServerInformation> + : public + Var_Size_Arg_Traits_T< + ImplementationRepository::ServerInformation, + ImplementationRepository::ServerInformation_var, + ImplementationRepository::ServerInformation_out + > + { + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_arg_traits.cpp:428 + +#if !defined (_IMPLEMENTATIONREPOSITORY_STARTUPOPTIONS__ARG_TRAITS_SS_) +#define _IMPLEMENTATIONREPOSITORY_STARTUPOPTIONS__ARG_TRAITS_SS_ + + ACE_TEMPLATE_SPECIALIZATION + class TAO_PortableServer_Export Arg_Traits<ImplementationRepository::StartupOptions> + : public + Var_Size_Arg_Traits_T< + ImplementationRepository::StartupOptions, + ImplementationRepository::StartupOptions_var, + ImplementationRepository::StartupOptions_out + > + { + }; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_arg_traits.cpp:262 + +#if !defined (__TAO_SEQ_IMPLEMENTATIONREPOSITORY_SERVERINFORMATION___ARG_TRAITS_SS_) +#define __TAO_SEQ_IMPLEMENTATIONREPOSITORY_SERVERINFORMATION___ARG_TRAITS_SS_ + + ACE_TEMPLATE_SPECIALIZATION + class TAO_PortableServer_Export Arg_Traits<ImplementationRepository::ServerInformationList> + : public + Var_Size_Arg_Traits_T< + ImplementationRepository::ServerInformationList, + ImplementationRepository::ServerInformationList_var, + ImplementationRepository::ServerInformationList_out + > + { + }; + +#endif /* end #if !defined */ + +#if !defined (_IMPLEMENTATIONREPOSITORY_SERVERINFORMATIONITERATOR__ARG_TRAITS_SS_) +#define _IMPLEMENTATIONREPOSITORY_SERVERINFORMATIONITERATOR__ARG_TRAITS_SS_ + + ACE_TEMPLATE_SPECIALIZATION + class TAO_PortableServer_Export Arg_Traits<ImplementationRepository::ServerInformationIterator> + : public + Object_Arg_Traits_T< + ImplementationRepository::ServerInformationIterator_ptr, + ImplementationRepository::ServerInformationIterator_var, + ImplementationRepository::ServerInformationIterator_out, + TAO::Objref_Traits<ImplementationRepository::ServerInformationIterator> + > + { + }; + +#endif /* end #if !defined */ + +#if !defined (_IMPLEMENTATIONREPOSITORY_SERVERINFORMATIONITERATOR__ARG_TRAITS_SS_) +#define _IMPLEMENTATIONREPOSITORY_SERVERINFORMATIONITERATOR__ARG_TRAITS_SS_ + + ACE_TEMPLATE_SPECIALIZATION + class TAO_PortableServer_Export Arg_Traits<ImplementationRepository::ServerInformationIterator> + : public + Object_Arg_Traits_T< + ImplementationRepository::ServerInformationIterator_ptr, + ImplementationRepository::ServerInformationIterator_var, + ImplementationRepository::ServerInformationIterator_out, + TAO::Objref_Traits<ImplementationRepository::ServerInformationIterator> + > + { + }; + +#endif /* end #if !defined */ +}; + +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:1403 class TAO_ImplementationRepository_ServerObject_Perfect_Hash_OpTable : public TAO_Perfect_Hash_OpTable { @@ -66,7 +214,7 @@ public: }; /* C++ code produced by gperf version 2.8 (ACE version) */ -/* Command-line: gperf -m -M -J -c -C -D -E -T -f 0 -F 0 -a -o -t -p -K opname_ -L C++ -Z TAO_ImplementationRepository_ServerObject_Perfect_Hash_OpTable -N lookup */ +/* Command-line: gperf -m -M -J -c -C -D -E -T -f 0 -F 0,0,0 -a -o -t -p -K opname_ -L C++ -Z TAO_ImplementationRepository_ServerObject_Perfect_Hash_OpTable -N lookup */ unsigned int TAO_ImplementationRepository_ServerObject_Perfect_Hash_OpTable::hash (const char *str, unsigned int len) { @@ -135,17 +283,17 @@ TAO_ImplementationRepository_ServerObject_Perfect_Hash_OpTable::lookup (const ch static const class TAO_operation_db_entry wordlist[] = { - {"",0},{"",0},{"",0},{"",0}, - {"ping", &POA_ImplementationRepository::ServerObject::ping_skel}, - {"_is_a", &POA_ImplementationRepository::ServerObject::_is_a_skel}, - {"",0},{"",0}, - {"shutdown", &POA_ImplementationRepository::ServerObject::shutdown_skel}, - {"",0}, - {"_component", &POA_ImplementationRepository::ServerObject::_component_skel}, - {"",0},{"",0}, - {"_non_existent", &POA_ImplementationRepository::ServerObject::_non_existent_skel}, - {"",0}, - {"_interface", &POA_ImplementationRepository::ServerObject::_interface_skel}, + {"",0,0,0},{"",0,0,0},{"",0,0,0},{"",0,0,0}, + {"ping", &POA_ImplementationRepository::ServerObject::ping_skel, &POA_ImplementationRepository::_TAO_ServerObject_ThruPOA_Proxy_Impl::ping, &POA_ImplementationRepository::_TAO_ServerObject_Direct_Proxy_Impl::ping}, + {"_is_a", &POA_ImplementationRepository::ServerObject::_is_a_skel, 0, 0}, + {"",0,0,0},{"",0,0,0}, + {"shutdown", &POA_ImplementationRepository::ServerObject::shutdown_skel, &POA_ImplementationRepository::_TAO_ServerObject_ThruPOA_Proxy_Impl::shutdown, &POA_ImplementationRepository::_TAO_ServerObject_Direct_Proxy_Impl::shutdown}, + {"",0,0,0}, + {"_component", &POA_ImplementationRepository::ServerObject::_component_skel, 0, 0}, + {"",0,0,0},{"",0,0,0}, + {"_non_existent", &POA_ImplementationRepository::ServerObject::_non_existent_skel, 0, 0}, + {"",0,0,0}, + {"_interface", &POA_ImplementationRepository::ServerObject::_interface_skel, 0, 0}, }; if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) @@ -181,45 +329,45 @@ public: POA_ImplementationRepository::ServerObject *tao_impl ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping ( const TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping & ); - + private: POA_ImplementationRepository::ServerObject *_tao_impl; - + }; // TAO_IDL - Generated from @@ -245,7 +393,7 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping::arguments ( Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return parameter_list; } @@ -259,11 +407,11 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping::exceptions ( Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return exception_list; } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -274,7 +422,7 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping::result ( CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -310,45 +458,45 @@ public: POA_ImplementationRepository::ServerObject *tao_impl ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown ( const TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown & ); - + private: POA_ImplementationRepository::ServerObject *_tao_impl; - + }; // TAO_IDL - Generated from @@ -374,7 +522,7 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown::arguments Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return parameter_list; } @@ -388,11 +536,11 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown::exceptions Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return exception_list; } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -403,7 +551,7 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown::result ( CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -437,7 +585,8 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown::target_is_ // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/strategized_proxy_broker_ss.cpp:40 // Factory function Implementation. -POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker *POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::the_TAO_ServerObject_Strategized_Proxy_Broker (void) +POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker * +POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::the_TAO_ServerObject_Strategized_Proxy_Broker (void) { static POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker strategized_proxy_broker; return &strategized_proxy_broker; @@ -445,86 +594,73 @@ POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker *POA_Im POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::_TAO_ServerObject_Strategized_Proxy_Broker (void) { - for (int i = 0; i < TAO_Collocation_Strategies::CS_LAST; ++i) - { - this->proxy_cache_[i] = 0; - } } POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::~_TAO_ServerObject_Strategized_Proxy_Broker (void) { - for (int i = 0; i < TAO_Collocation_Strategies::CS_LAST; ++i) - { - delete this->proxy_cache_[i]; - - // Hack to prevent bug mentioned in 1204. Refer to 1204 - // for details.. - this->proxy_cache_[i] = 0; - } } -ImplementationRepository::_TAO_ServerObject_Proxy_Impl& -POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::select_proxy ( - ::ImplementationRepository::ServerObject *object +TAO::Collocation_Strategy +POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::get_strategy ( + CORBA::Object_ptr obj ACE_ENV_ARG_DECL ) + ACE_THROW_SPEC ((CORBA::SystemException)) { - int strategy = - TAO_ORB_Core::collocation_strategy (object ACE_ENV_ARG_PARAMETER); - ACE_CHECK_RETURN (*this->proxy_cache_[strategy]); - - if (this->proxy_cache_[strategy] != 0) - { - return *this->proxy_cache_[strategy]; - } - - this->create_proxy (strategy ACE_ENV_ARG_PARAMETER); - ACE_CHECK_RETURN (*this->proxy_cache_[strategy]); - - return *this->proxy_cache_[strategy]; + TAO::Collocation_Strategy strategy = + TAO_ORB_Core::collocation_strategy_new (obj ACE_ENV_ARG_PARAMETER); + ACE_CHECK_RETURN (TAO::TAO_CS_REMOTE_STRATEGY); + + return strategy; } void -POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::create_proxy ( - int strategy +POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::dispatch ( + CORBA::Object_ptr obj, + CORBA::Object_out forward_obj, + TAO::Argument ** args, + int num_args, + const char * op, + size_t op_len, + TAO::Collocation_Strategy strategy ACE_ENV_ARG_DECL ) + ACE_THROW_SPEC ((CORBA::Exception)) { - ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) + TAO_Collocated_Skeleton collocated_skel; + + if (obj->_servant ()->_find (op, + collocated_skel, + strategy, + op_len) == -1) + ACE_THROW (CORBA::BAD_OPERATION ()); + + ACE_TRY { - switch (strategy) - { - case TAO_Collocation_Strategies::CS_THRU_POA_STRATEGY: - ACE_NEW_THROW_EX ( - this->proxy_cache_[strategy], - POA_ImplementationRepository::_TAO_ServerObject_ThruPOA_Proxy_Impl, - CORBA::NO_MEMORY () - ); - ACE_CHECK; - break; - - case TAO_Collocation_Strategies::CS_DIRECT_STRATEGY: - ACE_NEW_THROW_EX ( - this->proxy_cache_[strategy], - POA_ImplementationRepository::_TAO_ServerObject_Direct_Proxy_Impl, - CORBA::NO_MEMORY () - ); - ACE_CHECK; - break; - - case TAO_Collocation_Strategies::CS_REMOTE_STRATEGY: - default: - ACE_NEW_THROW_EX ( - this->proxy_cache_[strategy], - ::ImplementationRepository::_TAO_ServerObject_Remote_Proxy_Impl, - CORBA::NO_MEMORY () - ); - ACE_CHECK; - break; - } + collocated_skel ( + obj, + forward_obj, + args, + num_args + ACE_ENV_ARG_PARAMETER); + ACE_TRY_CHECK; + } + #if (TAO_HAS_MINIMUM_CORBA == 0) + ACE_CATCH (PortableServer::ForwardRequest, forward_request) + { + forward_obj = + CORBA::Object::_duplicate (forward_request.forward_reference.in ()); + return; } +#else + ACE_CATCHANY + { + ACE_UNUSED_ARG (forward_obj); + ACE_RE_THROW; + } +#endif /* TAO_HAS_MINIMUM_CORBA */ + ACE_ENDTRY; + ACE_CHECK; } // @@ -532,26 +668,32 @@ POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::create /////////////////////////////////////////////////////////////////////// // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:598 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:603 -ImplementationRepository::_TAO_ServerObject_Proxy_Broker * -ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_function (CORBA::Object_ptr obj) +TAO::Collocation_Proxy_Broker * +ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_function (CORBA::Object_ptr) { - ACE_UNUSED_ARG (obj); - return ::POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::the_TAO_ServerObject_Strategized_Proxy_Broker(); + return + ::POA_ImplementationRepository::_TAO_ServerObject_Strategized_Proxy_Broker::the_TAO_ServerObject_Strategized_Proxy_Broker(); } int ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_Initializer (size_t) { - ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_function_pointer = + ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_function_pointer = ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_function; - + return 0; } -static int ImplementationRepository__TAO_ServerObject_Proxy_Broker_Stub_Factory_Initializer_Scarecrow = - ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_Initializer (ACE_reinterpret_cast (size_t, ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_Initializer)); +static int +ImplementationRepository__TAO_ServerObject_Proxy_Broker_Stub_Factory_Initializer_Scarecrow = + ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_Initializer ( + ACE_reinterpret_cast ( + size_t, + ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_Initializer + ) + ); /////////////////////////////////////////////////////////////////////// @@ -566,87 +708,96 @@ POA_ImplementationRepository::_TAO_ServerObject_ThruPOA_Proxy_Impl::_TAO_ServerO // ThruPOA Implementation of the IDL interface methods -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:52 -void POA_ImplementationRepository::_TAO_ServerObject_ThruPOA_Proxy_Impl::ping ( - CORBA::Object *_collocated_tao_target_ +void +POA_ImplementationRepository::_TAO_ServerObject_ThruPOA_Proxy_Impl::ping ( + CORBA::Object_ptr obj, + CORBA::Object_out forward, + TAO::Argument **, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException )) { - TAO_Object_Adapter::Servant_Upcall servant_upcall ( - _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () + obj->_stubobj ()->servant_orb_var ()->orb_core () ); - CORBA::Object_var forward_to; + servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_stubobj ()->object_key (), + obj->_stubobj ()->object_key (), "ping", - forward_to.out () + forward ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::ServerObject_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/ServerObject:1.0" ) )->ping ( - ACE_ENV_SINGLE_ARG_PARAMETER ); + ACE_CHECK; } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:52 -void POA_ImplementationRepository::_TAO_ServerObject_ThruPOA_Proxy_Impl::shutdown ( - CORBA::Object *_collocated_tao_target_ +void +POA_ImplementationRepository::_TAO_ServerObject_ThruPOA_Proxy_Impl::shutdown ( + CORBA::Object_ptr obj, + CORBA::Object_out forward, + TAO::Argument **, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException )) { - TAO_Object_Adapter::Servant_Upcall servant_upcall ( - _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () + obj->_stubobj ()->servant_orb_var ()->orb_core () ); - CORBA::Object_var forward_to; + servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_stubobj ()->object_key (), + obj->_stubobj ()->object_key (), "shutdown", - forward_to.out () + forward ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::ServerObject_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/ServerObject:1.0" ) )->shutdown ( - ACE_ENV_SINGLE_ARG_PARAMETER ); -}// + ACE_CHECK; +} + +// // End ThruPOA Proxy Implementation /////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////// // Direct Proxy Implementation // @@ -654,47 +805,69 @@ void POA_ImplementationRepository::_TAO_ServerObject_ThruPOA_Proxy_Impl::shutdow POA_ImplementationRepository::_TAO_ServerObject_Direct_Proxy_Impl::_TAO_ServerObject_Direct_Proxy_Impl (void) {} -void POA_ImplementationRepository::_TAO_ServerObject_Direct_Proxy_Impl::ping ( - CORBA::Object *_collocated_tao_target_ +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/direct_proxy_impl_ss.cpp:42 + +void +POA_ImplementationRepository::_TAO_ServerObject_Direct_Proxy_Impl::ping ( + CORBA::Object_ptr obj, + CORBA::Object_out, + TAO::Argument **, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException - )){ + )) +{ + TAO_Object_Adapter::Servant_Upcall servant_upcall ( + obj->_stubobj ()->servant_orb_var ()->orb_core () + ); + ACE_reinterpret_cast ( POA_ImplementationRepository::ServerObject_ptr, - _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/ServerObject:1.0") + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/ServerObject:1.0" + ) )->ping ( + ACE_ENV_SINGLE_ARG_PARAMETER + ); + ACE_CHECK; +}// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/direct_proxy_impl_ss.cpp:42 - ACE_ENV_SINGLE_ARG_PARAMETER - ); - -} - -void POA_ImplementationRepository::_TAO_ServerObject_Direct_Proxy_Impl::shutdown ( - CORBA::Object *_collocated_tao_target_ +void +POA_ImplementationRepository::_TAO_ServerObject_Direct_Proxy_Impl::shutdown ( + CORBA::Object_ptr obj, + CORBA::Object_out, + TAO::Argument **, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException - )){ + )) +{ + TAO_Object_Adapter::Servant_Upcall servant_upcall ( + obj->_stubobj ()->servant_orb_var ()->orb_core () + ); + ACE_reinterpret_cast ( POA_ImplementationRepository::ServerObject_ptr, - _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/ServerObject:1.0") + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/ServerObject:1.0" + ) )->shutdown ( - - ACE_ENV_SINGLE_ARG_PARAMETER - ); - + ACE_ENV_SINGLE_ARG_PARAMETER + ); + ACE_CHECK; } - // // End Direct Proxy Implementation /////////////////////////////////////////////////////////////////////// - -// TAO_IDL - Generated from +// TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:98 POA_ImplementationRepository::ServerObject::ServerObject (void) @@ -705,14 +878,15 @@ POA_ImplementationRepository::ServerObject::ServerObject (void) POA_ImplementationRepository::ServerObject::ServerObject (const ServerObject& rhs) : TAO_Abstract_ServantBase (rhs), TAO_ServantBase (rhs) -{} +{ +} POA_ImplementationRepository::ServerObject::~ServerObject (void) { } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:98 void POA_ImplementationRepository::ServerObject::ping_skel ( TAO_ServerRequest &_tao_server_request, @@ -727,49 +901,49 @@ void POA_ImplementationRepository::ServerObject::ping_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_ServerObject_ping _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->ping ( - + ACE_ENV_SINGLE_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -785,52 +959,52 @@ void POA_ImplementationRepository::ServerObject::ping_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:98 void POA_ImplementationRepository::ServerObject::shutdown_skel ( TAO_ServerRequest &_tao_server_request, @@ -845,49 +1019,49 @@ void POA_ImplementationRepository::ServerObject::shutdown_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_ServerObject_shutdown _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->shutdown ( - + ACE_ENV_SINGLE_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -903,55 +1077,55 @@ void POA_ImplementationRepository::ServerObject::shutdown_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:163 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:165 void POA_ImplementationRepository::ServerObject::_is_a_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -961,22 +1135,22 @@ void POA_ImplementationRepository::ServerObject::_is_a_skel ( POA_ImplementationRepository::ServerObject *_tao_impl = (POA_ImplementationRepository::ServerObject *) _tao_servant; CORBA::Boolean _tao_retval = 0; CORBA::String_var value; - + if (!(_tao_in >> value.out ())) ACE_THROW (CORBA::MARSHAL ()); - + _tao_retval = _tao_impl->_is_a (value.in () ACE_ENV_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval))) ACE_THROW (CORBA::MARSHAL ()); } void POA_ImplementationRepository::ServerObject::_non_existent_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -986,16 +1160,16 @@ void POA_ImplementationRepository::ServerObject::_non_existent_skel ( CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval))) ACE_THROW (CORBA::MARSHAL ()); } void POA_ImplementationRepository::ServerObject::_interface_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -1004,27 +1178,27 @@ void POA_ImplementationRepository::ServerObject::_interface_skel ( POA_ImplementationRepository::ServerObject *_tao_impl = (POA_ImplementationRepository::ServerObject *) _tao_servant; CORBA::InterfaceDef_ptr _tao_retval = 0; CORBA::Boolean _tao_result = 0; - + TAO_IFR_Client_Adapter *_tao_adapter = ACE_Dynamic_Service<TAO_IFR_Client_Adapter>::instance ( TAO_ORB_Core::ifr_client_adapter_name () ); - + if (_tao_adapter == 0) { ACE_THROW (CORBA::INTF_REPOS ()); } - + ACE_TRY { - _tao_retval = + _tao_retval = _tao_impl->_get_interface (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + _tao_result = _tao_adapter->interfacedef_cdr_insert ( _tao_out, @@ -1036,7 +1210,7 @@ void POA_ImplementationRepository::ServerObject::_interface_skel ( _tao_adapter->dispose (_tao_retval); } ACE_ENDTRY; - + if (_tao_result == 0) { ACE_THROW (CORBA::MARSHAL ()); @@ -1044,7 +1218,7 @@ void POA_ImplementationRepository::ServerObject::_interface_skel ( } void POA_ImplementationRepository::ServerObject::_component_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_object_reference, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -1054,10 +1228,10 @@ void POA_ImplementationRepository::ServerObject::_component_skel ( CORBA::Object_var _tao_retval = _tao_impl->_get_component (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << _tao_retval._retn ())) ACE_THROW (CORBA::MARSHAL ()); } @@ -1095,13 +1269,13 @@ void* POA_ImplementationRepository::ServerObject::_downcast ( { return ACE_static_cast (POA_ImplementationRepository::ServerObject_ptr, this); } - + if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0) { return ACE_static_cast(PortableServer::Servant, this); } - + return 0; } @@ -1111,7 +1285,7 @@ const char* POA_ImplementationRepository::ServerObject::_interface_repository_id } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:532 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:539 void POA_ImplementationRepository::ServerObject::_dispatch ( TAO_ServerRequest &req, @@ -1126,17 +1300,17 @@ void POA_ImplementationRepository::ServerObject::_dispatch ( } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:478 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:479 ImplementationRepository::ServerObject * POA_ImplementationRepository::ServerObject::_this (ACE_ENV_SINGLE_ARG_DECL) { TAO_Stub *stub = this->_create_stub (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + TAO_Stub_Auto_Ptr safe_stub (stub); CORBA::Object_ptr tmp = CORBA::Object::_nil (); - + if (stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects ()) { ACE_NEW_RETURN ( @@ -1161,14 +1335,19 @@ POA_ImplementationRepository::ServerObject::_this (ACE_ENV_SINGLE_ARG_DECL) 0 ); } - + CORBA::Object_var obj = tmp; (void) safe_stub.release (); - return ::ImplementationRepository::ServerObject::_unchecked_narrow (obj.in ()); + typedef ::ImplementationRepository::ServerObject STUB_SCOPED_NAME; + return + TAO::Narrow_Utils<STUB_SCOPED_NAME>::unchecked_narrow ( + obj.in (), + ImplementationRepository__TAO_ServerObject_Proxy_Broker_Factory_function_pointer + ); } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:1731 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:1403 class TAO_ImplementationRepository_Administration_Perfect_Hash_OpTable : public TAO_Perfect_Hash_OpTable { @@ -1179,7 +1358,7 @@ public: }; /* C++ code produced by gperf version 2.8 (ACE version) */ -/* Command-line: gperf -m -M -J -c -C -D -E -T -f 0 -F 0 -a -o -t -p -K opname_ -L C++ -Z TAO_ImplementationRepository_Administration_Perfect_Hash_OpTable -N lookup */ +/* Command-line: gperf -m -M -J -c -C -D -E -T -f 0 -F 0,0,0 -a -o -t -p -K opname_ -L C++ -Z TAO_ImplementationRepository_Administration_Perfect_Hash_OpTable -N lookup */ unsigned int TAO_ImplementationRepository_Administration_Perfect_Hash_OpTable::hash (const char *str, unsigned int len) { @@ -1248,30 +1427,30 @@ TAO_ImplementationRepository_Administration_Perfect_Hash_OpTable::lookup (const static const class TAO_operation_db_entry wordlist[] = { - {"",0},{"",0},{"",0},{"",0}, - {"find", &POA_ImplementationRepository::Administration::find_skel}, - {"",0},{"",0},{"",0},{"",0}, - {"_is_a", &POA_ImplementationRepository::Administration::_is_a_skel}, - {"_interface", &POA_ImplementationRepository::Administration::_interface_skel}, - {"",0},{"",0}, - {"remove_server", &POA_ImplementationRepository::Administration::remove_server_skel}, - {"",0}, - {"register_server", &POA_ImplementationRepository::Administration::register_server_skel}, - {"",0}, - {"reregister_server", &POA_ImplementationRepository::Administration::reregister_server_skel}, - {"",0}, - {"activate_server", &POA_ImplementationRepository::Administration::activate_server_skel}, - {"shutdown_server", &POA_ImplementationRepository::Administration::shutdown_server_skel}, - {"",0}, - {"server_is_running", &POA_ImplementationRepository::Administration::server_is_running_skel}, - {"",0}, - {"list", &POA_ImplementationRepository::Administration::list_skel}, - {"_component", &POA_ImplementationRepository::Administration::_component_skel}, - {"",0},{"",0}, - {"_non_existent", &POA_ImplementationRepository::Administration::_non_existent_skel}, - {"",0},{"",0},{"",0}, - {"activate_server_with_startup", &POA_ImplementationRepository::Administration::activate_server_with_startup_skel}, - {"server_is_shutting_down", &POA_ImplementationRepository::Administration::server_is_shutting_down_skel}, + {"",0,0,0},{"",0,0,0},{"",0,0,0},{"",0,0,0}, + {"find", &POA_ImplementationRepository::Administration::find_skel, &POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::find, &POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::find}, + {"",0,0,0},{"",0,0,0},{"",0,0,0},{"",0,0,0}, + {"_is_a", &POA_ImplementationRepository::Administration::_is_a_skel, 0, 0}, + {"_interface", &POA_ImplementationRepository::Administration::_interface_skel, 0, 0}, + {"",0,0,0},{"",0,0,0}, + {"remove_server", &POA_ImplementationRepository::Administration::remove_server_skel, &POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::remove_server, &POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::remove_server}, + {"",0,0,0}, + {"register_server", &POA_ImplementationRepository::Administration::register_server_skel, &POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::register_server, &POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::register_server}, + {"",0,0,0}, + {"reregister_server", &POA_ImplementationRepository::Administration::reregister_server_skel, &POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::reregister_server, &POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::reregister_server}, + {"",0,0,0}, + {"activate_server", &POA_ImplementationRepository::Administration::activate_server_skel, &POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::activate_server, &POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::activate_server}, + {"shutdown_server", &POA_ImplementationRepository::Administration::shutdown_server_skel, &POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::shutdown_server, &POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::shutdown_server}, + {"",0,0,0}, + {"server_is_running", &POA_ImplementationRepository::Administration::server_is_running_skel, &POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::server_is_running, &POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::server_is_running}, + {"",0,0,0}, + {"list", &POA_ImplementationRepository::Administration::list_skel, &POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::list, &POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::list}, + {"_component", &POA_ImplementationRepository::Administration::_component_skel, 0, 0}, + {"",0,0,0},{"",0,0,0}, + {"_non_existent", &POA_ImplementationRepository::Administration::_non_existent_skel, 0, 0}, + {"",0,0,0},{"",0,0,0},{"",0,0,0}, + {"activate_server_with_startup", &POA_ImplementationRepository::Administration::activate_server_with_startup_skel, &POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::activate_server_with_startup, &POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::activate_server_with_startup}, + {"server_is_shutting_down", &POA_ImplementationRepository::Administration::server_is_shutting_down_skel, &POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::server_is_shutting_down, &POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::server_is_shutting_down}, }; if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) @@ -1308,45 +1487,45 @@ public: const char * server ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; }; @@ -1375,15 +1554,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server::a Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (1); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -1397,15 +1576,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server::e Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_activate_server_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_activate_server_exceptiondata[] = { ImplementationRepository::_tc_NotFound, ImplementationRepository::_tc_CannotActivate }; - + exception_list->length (2); for (CORBA::ULong i = 0; i < 2; ++i) { @@ -1417,7 +1596,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server::e return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -1428,7 +1607,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server::r CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -1466,49 +1645,50 @@ public: const CORBA::Long & check_startup ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + void result (char * result); private: TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_with_startup ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_with_startup & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_with_startup & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; - const CORBA::Long & check_startup_;char * _result; + const CORBA::Long & check_startup_; + char * _result; }; // TAO_IDL - Generated from @@ -1538,19 +1718,19 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_wi Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (2); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + (*parameter_list)[len].argument <<= check_startup_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -1564,15 +1744,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_wi Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_activate_server_with_startup_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_activate_server_with_startup_exceptiondata[] = { ImplementationRepository::_tc_NotFound, ImplementationRepository::_tc_CannotActivate }; - + exception_list->length (2); for (CORBA::ULong i = 0; i < 2; ++i) { @@ -1584,7 +1764,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_wi return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_with_startup::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -1595,11 +1775,11 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_wi CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + CORBA::Any_var safe_result_any = result_any; - + (*result_any) <<= this->_result; - + return safe_result_any._retn (); } @@ -1623,7 +1803,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_wi return this->_tao_impl->_is_a (id ACE_ENV_ARG_PARAMETER); } -void +void TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_with_startup::result (char * result) { // Update the result. @@ -1644,45 +1824,45 @@ public: const ImplementationRepository::StartupOptions & options ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; const ImplementationRepository::StartupOptions & options_; }; @@ -1714,19 +1894,19 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server::a Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (2); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + (*parameter_list)[len].argument <<= this->options_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -1740,14 +1920,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server::e Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_register_server_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_register_server_exceptiondata[] = { ImplementationRepository::_tc_AlreadyRegistered }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -1759,7 +1939,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server::e return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -1770,7 +1950,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server::r CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -1808,45 +1988,45 @@ public: const ImplementationRepository::StartupOptions & options ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; const ImplementationRepository::StartupOptions & options_; }; @@ -1878,19 +2058,19 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server: Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (2); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + (*parameter_list)[len].argument <<= this->options_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -1904,11 +2084,11 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server: Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return exception_list; } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -1919,7 +2099,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server: CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -1956,45 +2136,45 @@ public: const char * server ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; }; @@ -2023,15 +2203,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server::arg Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (1); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -2045,14 +2225,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server::exc Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_remove_server_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_remove_server_exceptiondata[] = { ImplementationRepository::_tc_NotFound }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -2064,7 +2244,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server::exc return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -2075,7 +2255,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server::res CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -2112,45 +2292,45 @@ public: const char * server ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; }; @@ -2179,15 +2359,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server::a Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (1); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -2201,14 +2381,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server::e Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_shutdown_server_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_shutdown_server_exceptiondata[] = { ImplementationRepository::_tc_NotFound }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -2220,7 +2400,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server::e return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -2231,7 +2411,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server::r CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -2270,50 +2450,51 @@ public: ImplementationRepository::ServerObject_ptr server_object ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + void result (char * result); private: TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; const char * addr_; - ImplementationRepository::ServerObject_ptr server_object_;char * _result; + ImplementationRepository::ServerObject_ptr server_object_; + char * _result; }; // TAO_IDL - Generated from @@ -2345,23 +2526,23 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running: Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (3); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + (*parameter_list)[len].argument <<= addr_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + (*parameter_list)[len].argument <<= this->server_object_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -2375,14 +2556,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running: Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_server_is_running_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_server_is_running_exceptiondata[] = { ImplementationRepository::_tc_NotFound }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -2394,7 +2575,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running: return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -2405,11 +2586,11 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running: CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + CORBA::Any_var safe_result_any = result_any; - + (*result_any) <<= this->_result; - + return safe_result_any._retn (); } @@ -2433,7 +2614,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running: return this->_tao_impl->_is_a (id ACE_ENV_ARG_PARAMETER); } -void +void TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running::result (char * result) { // Update the result. @@ -2453,45 +2634,45 @@ public: const char * server ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting_down ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting_down & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting_down & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; }; @@ -2520,15 +2701,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (1); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -2542,14 +2723,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_server_is_shutting_down_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_server_is_shutting_down_exceptiondata[] = { ImplementationRepository::_tc_NotFound }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -2561,7 +2742,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting_down::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -2572,7 +2753,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -2609,45 +2790,45 @@ public: const char * server ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_find ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_find & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_find & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - + const char * server_; }; @@ -2676,15 +2857,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_find::arguments ( Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (1); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= server_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -2698,14 +2879,14 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_find::exceptions ( Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ExceptionList_var safe_exception_list = exception_list; - - static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_find_exceptiondata[] = + + static CORBA::TypeCode_ptr _tao_ImplementationRepository_Administration_find_exceptiondata[] = { ImplementationRepository::_tc_NotFound }; - + exception_list->length (1); for (CORBA::ULong i = 0; i < 1; ++i) { @@ -2717,7 +2898,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_find::exceptions ( return safe_exception_list._retn (); } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_find::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -2728,7 +2909,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_find::result ( CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -2762,50 +2943,50 @@ public: TAO_ServerRequest &_tao_server_request, TAO_Object_Adapter::Servant_Upcall *tao_servant_upcall, POA_ImplementationRepository::Administration *tao_impl, - const CORBA::ULong & how_many + const CORBA::ULong & how_many ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_Administration_list ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_list & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_Administration_list & ); - + private: POA_ImplementationRepository::Administration *_tao_impl; - - const CORBA::ULong & how_many_; + + const CORBA::ULong & how_many_; }; @@ -2816,13 +2997,13 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_list::TAO_ServerRe TAO_ServerRequest &_tao_server_request, TAO_Object_Adapter::Servant_Upcall *_tao_servant_upcall, POA_ImplementationRepository::Administration *tao_impl, - const CORBA::ULong & how_many + const CORBA::ULong & how_many ACE_ENV_ARG_DECL_NOT_USED ) : TAO_ServerRequestInfo (_tao_server_request, _tao_servant_upcall), _tao_impl (tao_impl), - how_many_ (how_many) + how_many_ (how_many) {} @@ -2836,15 +3017,15 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_list::arguments ( Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (1); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= how_many_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -2859,11 +3040,11 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_list::exceptions ( Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return exception_list; } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_Administration_list::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -2874,7 +3055,7 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_list::result ( CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -2908,7 +3089,8 @@ TAO_ServerRequestInfo_ImplementationRepository_Administration_list::target_is_a // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/strategized_proxy_broker_ss.cpp:40 // Factory function Implementation. -POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker *POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::the_TAO_Administration_Strategized_Proxy_Broker (void) +POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker * +POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::the_TAO_Administration_Strategized_Proxy_Broker (void) { static POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker strategized_proxy_broker; return &strategized_proxy_broker; @@ -2916,86 +3098,73 @@ POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker *POA_ POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::_TAO_Administration_Strategized_Proxy_Broker (void) { - for (int i = 0; i < TAO_Collocation_Strategies::CS_LAST; ++i) - { - this->proxy_cache_[i] = 0; - } } POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::~_TAO_Administration_Strategized_Proxy_Broker (void) { - for (int i = 0; i < TAO_Collocation_Strategies::CS_LAST; ++i) - { - delete this->proxy_cache_[i]; - - // Hack to prevent bug mentioned in 1204. Refer to 1204 - // for details.. - this->proxy_cache_[i] = 0; - } } -ImplementationRepository::_TAO_Administration_Proxy_Impl& -POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::select_proxy ( - ::ImplementationRepository::Administration *object +TAO::Collocation_Strategy +POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::get_strategy ( + CORBA::Object_ptr obj ACE_ENV_ARG_DECL ) + ACE_THROW_SPEC ((CORBA::SystemException)) { - int strategy = - TAO_ORB_Core::collocation_strategy (object ACE_ENV_ARG_PARAMETER); - ACE_CHECK_RETURN (*this->proxy_cache_[strategy]); - - if (this->proxy_cache_[strategy] != 0) - { - return *this->proxy_cache_[strategy]; - } - - this->create_proxy (strategy ACE_ENV_ARG_PARAMETER); - ACE_CHECK_RETURN (*this->proxy_cache_[strategy]); - - return *this->proxy_cache_[strategy]; + TAO::Collocation_Strategy strategy = + TAO_ORB_Core::collocation_strategy_new (obj ACE_ENV_ARG_PARAMETER); + ACE_CHECK_RETURN (TAO::TAO_CS_REMOTE_STRATEGY); + + return strategy; } void -POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::create_proxy ( - int strategy +POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::dispatch ( + CORBA::Object_ptr obj, + CORBA::Object_out forward_obj, + TAO::Argument ** args, + int num_args, + const char * op, + size_t op_len, + TAO::Collocation_Strategy strategy ACE_ENV_ARG_DECL ) + ACE_THROW_SPEC ((CORBA::Exception)) { - ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) + TAO_Collocated_Skeleton collocated_skel; + + if (obj->_servant ()->_find (op, + collocated_skel, + strategy, + op_len) == -1) + ACE_THROW (CORBA::BAD_OPERATION ()); + + ACE_TRY { - switch (strategy) - { - case TAO_Collocation_Strategies::CS_THRU_POA_STRATEGY: - ACE_NEW_THROW_EX ( - this->proxy_cache_[strategy], - POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl, - CORBA::NO_MEMORY () - ); - ACE_CHECK; - break; - - case TAO_Collocation_Strategies::CS_DIRECT_STRATEGY: - ACE_NEW_THROW_EX ( - this->proxy_cache_[strategy], - POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl, - CORBA::NO_MEMORY () - ); - ACE_CHECK; - break; - - case TAO_Collocation_Strategies::CS_REMOTE_STRATEGY: - default: - ACE_NEW_THROW_EX ( - this->proxy_cache_[strategy], - ::ImplementationRepository::_TAO_Administration_Remote_Proxy_Impl, - CORBA::NO_MEMORY () - ); - ACE_CHECK; - break; - } + collocated_skel ( + obj, + forward_obj, + args, + num_args + ACE_ENV_ARG_PARAMETER); + ACE_TRY_CHECK; } + #if (TAO_HAS_MINIMUM_CORBA == 0) + ACE_CATCH (PortableServer::ForwardRequest, forward_request) + { + forward_obj = + CORBA::Object::_duplicate (forward_request.forward_reference.in ()); + return; + } +#else + ACE_CATCHANY + { + ACE_UNUSED_ARG (forward_obj); + ACE_RE_THROW; + } +#endif /* TAO_HAS_MINIMUM_CORBA */ + ACE_ENDTRY; + ACE_CHECK; } // @@ -3003,26 +3172,32 @@ POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::crea /////////////////////////////////////////////////////////////////////// // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:598 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:603 -ImplementationRepository::_TAO_Administration_Proxy_Broker * -ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_function (CORBA::Object_ptr obj) +TAO::Collocation_Proxy_Broker * +ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_function (CORBA::Object_ptr) { - ACE_UNUSED_ARG (obj); - return ::POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::the_TAO_Administration_Strategized_Proxy_Broker(); + return + ::POA_ImplementationRepository::_TAO_Administration_Strategized_Proxy_Broker::the_TAO_Administration_Strategized_Proxy_Broker(); } int ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_Initializer (size_t) { - ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_function_pointer = + ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_function_pointer = ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_function; - + return 0; } -static int ImplementationRepository__TAO_Administration_Proxy_Broker_Stub_Factory_Initializer_Scarecrow = - ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_Initializer (ACE_reinterpret_cast (size_t, ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_Initializer)); +static int +ImplementationRepository__TAO_Administration_Proxy_Broker_Stub_Factory_Initializer_Scarecrow = + ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_Initializer ( + ACE_reinterpret_cast ( + size_t, + ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_Initializer + ) + ); /////////////////////////////////////////////////////////////////////// @@ -3037,12 +3212,15 @@ POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::_TAO_Admin // ThruPOA Implementation of the IDL interface methods -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:52 -void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::activate_server ( - CORBA::Object *_collocated_tao_target_, - const char * server +void +POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::activate_server ( + CORBA::Object_ptr obj, + CORBA::Object_out forward, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( @@ -3051,43 +3229,44 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::activ , ImplementationRepository::CannotActivate )) { - TAO_Object_Adapter::Servant_Upcall servant_upcall ( - _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () + obj->_stubobj ()->servant_orb_var ()->orb_core () ); - CORBA::Object_var forward_to; + servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_stubobj ()->object_key (), + obj->_stubobj ()->object_key (), "activate_server", - forward_to.out () + forward ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->activate_server ( - - server + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg () ACE_ENV_ARG_PARAMETER ); + ACE_CHECK; } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:52 -char * POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::activate_server_with_startup ( - CORBA::Object *_collocated_tao_target_, - const char * server, - CORBA::Long check_startup +void +POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::activate_server_with_startup ( + CORBA::Object_ptr obj, + CORBA::Object_out forward, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( @@ -3096,45 +3275,46 @@ char * POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::act , ImplementationRepository::CannotActivate )) { - CORBA::String_var _tao_retval; - ACE_UNUSED_ARG (_tao_retval); TAO_Object_Adapter::Servant_Upcall servant_upcall ( - _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () + obj->_stubobj ()->servant_orb_var ()->orb_core () ); - CORBA::Object_var forward_to; + servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_stubobj ()->object_key (), + obj->_stubobj ()->object_key (), "activate_server_with_startup", - forward_to.out () + forward ACE_ENV_ARG_PARAMETER ); - ACE_CHECK_RETURN (_tao_retval._retn ()); - + ACE_CHECK; + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); - ACE_CHECK_RETURN (_tao_retval._retn ()); - - return ACE_reinterpret_cast ( - POA_ImplementationRepository::Administration_ptr, - servant_upcall.servant ()->_downcast ( - "IDL:ImplementationRepository/Administration:1.0" - ) - )->activate_server_with_startup ( - - server, - check_startup - ACE_ENV_ARG_PARAMETER - ); + ACE_CHECK; + + ((TAO::Arg_Traits<CORBA::Char *>::ret_val *) args[0])->arg () = + ACE_reinterpret_cast ( + POA_ImplementationRepository::Administration_ptr, + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/Administration:1.0" + ) + )->activate_server_with_startup ( + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg (), + ((TAO::Arg_Traits<CORBA::Long>::in_arg_val *) args[2])->arg () + ACE_ENV_ARG_PARAMETER + ); + ACE_CHECK; } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:52 -void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::register_server ( - CORBA::Object *_collocated_tao_target_, - const char * server, - const ImplementationRepository::StartupOptions & options +void +POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::register_server ( + CORBA::Object_ptr obj, + CORBA::Object_out forward, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( @@ -3142,87 +3322,90 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::regis , ImplementationRepository::AlreadyRegistered )) { - TAO_Object_Adapter::Servant_Upcall servant_upcall ( - _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () + obj->_stubobj ()->servant_orb_var ()->orb_core () ); - CORBA::Object_var forward_to; + servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_stubobj ()->object_key (), + obj->_stubobj ()->object_key (), "register_server", - forward_to.out () + forward ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->register_server ( - - server, - options + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::StartupOptions>::in_arg_val *) args[2])->arg () ACE_ENV_ARG_PARAMETER ); + ACE_CHECK; } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:52 -void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::reregister_server ( - CORBA::Object *_collocated_tao_target_, - const char * server, - const ImplementationRepository::StartupOptions & options +void +POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::reregister_server ( + CORBA::Object_ptr obj, + CORBA::Object_out forward, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException )) { - TAO_Object_Adapter::Servant_Upcall servant_upcall ( - _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () + obj->_stubobj ()->servant_orb_var ()->orb_core () ); - CORBA::Object_var forward_to; + servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_stubobj ()->object_key (), + obj->_stubobj ()->object_key (), "reregister_server", - forward_to.out () + forward ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->reregister_server ( - - server, - options + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::StartupOptions>::in_arg_val *) args[2])->arg () ACE_ENV_ARG_PARAMETER ); + ACE_CHECK; } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:52 -void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::remove_server ( - CORBA::Object *_collocated_tao_target_, - const char * server +void +POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::remove_server ( + CORBA::Object_ptr obj, + CORBA::Object_out forward, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( @@ -3230,42 +3413,44 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::remov , ImplementationRepository::NotFound )) { - TAO_Object_Adapter::Servant_Upcall servant_upcall ( - _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () + obj->_stubobj ()->servant_orb_var ()->orb_core () ); - CORBA::Object_var forward_to; + servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_stubobj ()->object_key (), + obj->_stubobj ()->object_key (), "remove_server", - forward_to.out () + forward ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->remove_server ( - - server + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg () ACE_ENV_ARG_PARAMETER ); + ACE_CHECK; } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:52 -void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::shutdown_server ( - CORBA::Object *_collocated_tao_target_, - const char * server +void +POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::shutdown_server ( + CORBA::Object_ptr obj, + CORBA::Object_out forward, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( @@ -3273,44 +3458,44 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::shutd , ImplementationRepository::NotFound )) { - TAO_Object_Adapter::Servant_Upcall servant_upcall ( - _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () + obj->_stubobj ()->servant_orb_var ()->orb_core () ); - CORBA::Object_var forward_to; + servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_stubobj ()->object_key (), + obj->_stubobj ()->object_key (), "shutdown_server", - forward_to.out () + forward ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->shutdown_server ( - - server + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg () ACE_ENV_ARG_PARAMETER ); + ACE_CHECK; } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:52 -char * POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::server_is_running ( - CORBA::Object *_collocated_tao_target_, - const char * server, - const char * addr, - ImplementationRepository::ServerObject_ptr server_object +void +POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::server_is_running ( + CORBA::Object_ptr obj, + CORBA::Object_out forward, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( @@ -3318,45 +3503,47 @@ char * POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::ser , ImplementationRepository::NotFound )) { - CORBA::String_var _tao_retval; - ACE_UNUSED_ARG (_tao_retval); TAO_Object_Adapter::Servant_Upcall servant_upcall ( - _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () + obj->_stubobj ()->servant_orb_var ()->orb_core () ); - CORBA::Object_var forward_to; + servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_stubobj ()->object_key (), + obj->_stubobj ()->object_key (), "server_is_running", - forward_to.out () + forward ACE_ENV_ARG_PARAMETER ); - ACE_CHECK_RETURN (_tao_retval._retn ()); - + ACE_CHECK; + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); - ACE_CHECK_RETURN (_tao_retval._retn ()); - - return ACE_reinterpret_cast ( - POA_ImplementationRepository::Administration_ptr, - servant_upcall.servant ()->_downcast ( - "IDL:ImplementationRepository/Administration:1.0" - ) - )->server_is_running ( - - server, - addr, - server_object - ACE_ENV_ARG_PARAMETER - ); + ACE_CHECK; + + ((TAO::Arg_Traits<ImplementationRepository::Address>::ret_val *) args[0])->arg () = + ACE_reinterpret_cast ( + POA_ImplementationRepository::Administration_ptr, + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/Administration:1.0" + ) + )->server_is_running ( + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::Address>::in_arg_val *) args[2])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::ServerObject>::in_arg_val *) args[3])->arg () + ACE_ENV_ARG_PARAMETER + ); + ACE_CHECK; } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:52 -void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::server_is_shutting_down ( - CORBA::Object *_collocated_tao_target_, - const char * server +void +POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::server_is_shutting_down ( + CORBA::Object_ptr obj, + CORBA::Object_out forward, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( @@ -3364,43 +3551,44 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::serve , ImplementationRepository::NotFound )) { - TAO_Object_Adapter::Servant_Upcall servant_upcall ( - _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () + obj->_stubobj ()->servant_orb_var ()->orb_core () ); - CORBA::Object_var forward_to; + servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_stubobj ()->object_key (), + obj->_stubobj ()->object_key (), "server_is_shutting_down", - forward_to.out () + forward ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->server_is_shutting_down ( - - server + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg () ACE_ENV_ARG_PARAMETER ); + ACE_CHECK; } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:52 -void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::find ( - CORBA::Object *_collocated_tao_target_, - const char * server, - ImplementationRepository::ServerInformation_out info +void +POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::find ( + CORBA::Object_ptr obj, + CORBA::Object_out forward, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( @@ -3408,86 +3596,86 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::find , ImplementationRepository::NotFound )) { - TAO_Object_Adapter::Servant_Upcall servant_upcall ( - _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () + obj->_stubobj ()->servant_orb_var ()->orb_core () ); - CORBA::Object_var forward_to; + servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_stubobj ()->object_key (), + obj->_stubobj ()->object_key (), "find", - forward_to.out () + forward ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->find ( - - server, - info + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::ServerInformation>::out_arg_val *) args[2])->arg () ACE_ENV_ARG_PARAMETER ); + ACE_CHECK; } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:52 -void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::list ( - CORBA::Object *_collocated_tao_target_, - CORBA::ULong how_many, - ImplementationRepository::ServerInformationList_out server_list, - ImplementationRepository::ServerInformationIterator_out server_iterator +void +POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::list ( + CORBA::Object_ptr obj, + CORBA::Object_out forward, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException )) { - TAO_Object_Adapter::Servant_Upcall servant_upcall ( - _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () + obj->_stubobj ()->servant_orb_var ()->orb_core () ); - CORBA::Object_var forward_to; + servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_stubobj ()->object_key (), + obj->_stubobj ()->object_key (), "list", - forward_to.out () + forward ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/Administration:1.0" ) )->list ( - - how_many, - server_list, - server_iterator + ((TAO::Arg_Traits<CORBA::ULong>::in_arg_val *) args[1])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::ServerInformationList>::out_arg_val *) args[2])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::ServerInformationIterator>::out_arg_val *) args[3])->arg () ACE_ENV_ARG_PARAMETER ); + ACE_CHECK; } // // End ThruPOA Proxy Implementation /////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////// // Direct Proxy Implementation // @@ -3495,228 +3683,323 @@ void POA_ImplementationRepository::_TAO_Administration_ThruPOA_Proxy_Impl::list POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::_TAO_Administration_Direct_Proxy_Impl (void) {} -void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::activate_server ( - CORBA::Object *_collocated_tao_target_, - const char * server +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/direct_proxy_impl_ss.cpp:42 + +void +POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::activate_server ( + CORBA::Object_ptr obj, + CORBA::Object_out, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException , ImplementationRepository::NotFound , ImplementationRepository::CannotActivate - )){ + )) +{ + TAO_Object_Adapter::Servant_Upcall servant_upcall ( + obj->_stubobj ()->servant_orb_var ()->orb_core () + ); + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, - _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/Administration:1.0" + ) )->activate_server ( + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg () + ACE_ENV_ARG_PARAMETER + ); + ACE_CHECK; +}// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/direct_proxy_impl_ss.cpp:42 - server - ACE_ENV_ARG_PARAMETER - ); - -} - -char * POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::activate_server_with_startup ( - CORBA::Object *_collocated_tao_target_, - const char * server, - CORBA::Long check_startup +void +POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::activate_server_with_startup ( + CORBA::Object_ptr obj, + CORBA::Object_out, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException , ImplementationRepository::NotFound , ImplementationRepository::CannotActivate - )){ - return ACE_reinterpret_cast ( - POA_ImplementationRepository::Administration_ptr, - _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") - )->activate_server_with_startup ( - - server, - check_startup + )) +{ + TAO_Object_Adapter::Servant_Upcall servant_upcall ( + obj->_stubobj ()->servant_orb_var ()->orb_core () + ); + + ((TAO::Arg_Traits<CORBA::Char *>::ret_val *) args[0])->arg () = + ACE_reinterpret_cast ( + POA_ImplementationRepository::Administration_ptr, + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/Administration:1.0" + ) + )->activate_server_with_startup ( + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg (), + ((TAO::Arg_Traits<CORBA::Long>::in_arg_val *) args[2])->arg () ACE_ENV_ARG_PARAMETER ); + ACE_CHECK; +}// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/direct_proxy_impl_ss.cpp:42 -} - -void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::register_server ( - CORBA::Object *_collocated_tao_target_, - const char * server, - const ImplementationRepository::StartupOptions & options +void +POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::register_server ( + CORBA::Object_ptr obj, + CORBA::Object_out, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException , ImplementationRepository::AlreadyRegistered - )){ + )) +{ + TAO_Object_Adapter::Servant_Upcall servant_upcall ( + obj->_stubobj ()->servant_orb_var ()->orb_core () + ); + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, - _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/Administration:1.0" + ) )->register_server ( + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::StartupOptions>::in_arg_val *) args[2])->arg () + ACE_ENV_ARG_PARAMETER + ); + ACE_CHECK; +}// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/direct_proxy_impl_ss.cpp:42 - server, - options - ACE_ENV_ARG_PARAMETER - ); - -} - -void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::reregister_server ( - CORBA::Object *_collocated_tao_target_, - const char * server, - const ImplementationRepository::StartupOptions & options +void +POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::reregister_server ( + CORBA::Object_ptr obj, + CORBA::Object_out, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException - )){ + )) +{ + TAO_Object_Adapter::Servant_Upcall servant_upcall ( + obj->_stubobj ()->servant_orb_var ()->orb_core () + ); + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, - _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/Administration:1.0" + ) )->reregister_server ( + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::StartupOptions>::in_arg_val *) args[2])->arg () + ACE_ENV_ARG_PARAMETER + ); + ACE_CHECK; +}// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/direct_proxy_impl_ss.cpp:42 - server, - options - ACE_ENV_ARG_PARAMETER - ); - -} - -void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::remove_server ( - CORBA::Object *_collocated_tao_target_, - const char * server +void +POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::remove_server ( + CORBA::Object_ptr obj, + CORBA::Object_out, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException , ImplementationRepository::NotFound - )){ + )) +{ + TAO_Object_Adapter::Servant_Upcall servant_upcall ( + obj->_stubobj ()->servant_orb_var ()->orb_core () + ); + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, - _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/Administration:1.0" + ) )->remove_server ( + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg () + ACE_ENV_ARG_PARAMETER + ); + ACE_CHECK; +}// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/direct_proxy_impl_ss.cpp:42 - server - ACE_ENV_ARG_PARAMETER - ); - -} - -void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::shutdown_server ( - CORBA::Object *_collocated_tao_target_, - const char * server +void +POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::shutdown_server ( + CORBA::Object_ptr obj, + CORBA::Object_out, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException , ImplementationRepository::NotFound - )){ + )) +{ + TAO_Object_Adapter::Servant_Upcall servant_upcall ( + obj->_stubobj ()->servant_orb_var ()->orb_core () + ); + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, - _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/Administration:1.0" + ) )->shutdown_server ( + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg () + ACE_ENV_ARG_PARAMETER + ); + ACE_CHECK; +}// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/direct_proxy_impl_ss.cpp:42 - server - ACE_ENV_ARG_PARAMETER - ); - -} - -char * POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::server_is_running ( - CORBA::Object *_collocated_tao_target_, - const char * server, - const char * addr, - ImplementationRepository::ServerObject_ptr server_object +void +POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::server_is_running ( + CORBA::Object_ptr obj, + CORBA::Object_out, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException , ImplementationRepository::NotFound - )){ - return ACE_reinterpret_cast ( - POA_ImplementationRepository::Administration_ptr, - _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") - )->server_is_running ( - - server, - addr, - server_object + )) +{ + TAO_Object_Adapter::Servant_Upcall servant_upcall ( + obj->_stubobj ()->servant_orb_var ()->orb_core () + ); + + ((TAO::Arg_Traits<ImplementationRepository::Address>::ret_val *) args[0])->arg () = + ACE_reinterpret_cast ( + POA_ImplementationRepository::Administration_ptr, + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/Administration:1.0" + ) + )->server_is_running ( + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::Address>::in_arg_val *) args[2])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::ServerObject>::in_arg_val *) args[3])->arg () ACE_ENV_ARG_PARAMETER ); + ACE_CHECK; +}// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/direct_proxy_impl_ss.cpp:42 -} - -void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::server_is_shutting_down ( - CORBA::Object *_collocated_tao_target_, - const char * server +void +POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::server_is_shutting_down ( + CORBA::Object_ptr obj, + CORBA::Object_out, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException , ImplementationRepository::NotFound - )){ + )) +{ + TAO_Object_Adapter::Servant_Upcall servant_upcall ( + obj->_stubobj ()->servant_orb_var ()->orb_core () + ); + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, - _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/Administration:1.0" + ) )->server_is_shutting_down ( + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg () + ACE_ENV_ARG_PARAMETER + ); + ACE_CHECK; +}// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/direct_proxy_impl_ss.cpp:42 - server - ACE_ENV_ARG_PARAMETER - ); - -} - -void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::find ( - CORBA::Object *_collocated_tao_target_, - const char * server, - ImplementationRepository::ServerInformation_out info +void +POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::find ( + CORBA::Object_ptr obj, + CORBA::Object_out, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException , ImplementationRepository::NotFound - )){ + )) +{ + TAO_Object_Adapter::Servant_Upcall servant_upcall ( + obj->_stubobj ()->servant_orb_var ()->orb_core () + ); + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, - _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/Administration:1.0" + ) )->find ( + ((TAO::Arg_Traits<CORBA::Char *>::in_arg_val *) args[1])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::ServerInformation>::out_arg_val *) args[2])->arg () + ACE_ENV_ARG_PARAMETER + ); + ACE_CHECK; +}// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/direct_proxy_impl_ss.cpp:42 - server, - info - ACE_ENV_ARG_PARAMETER - ); - -} - -void POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::list ( - CORBA::Object *_collocated_tao_target_, - CORBA::ULong how_many, - ImplementationRepository::ServerInformationList_out server_list, - ImplementationRepository::ServerInformationIterator_out server_iterator +void +POA_ImplementationRepository::_TAO_Administration_Direct_Proxy_Impl::list ( + CORBA::Object_ptr obj, + CORBA::Object_out, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException - )){ + )) +{ + TAO_Object_Adapter::Servant_Upcall servant_upcall ( + obj->_stubobj ()->servant_orb_var ()->orb_core () + ); + ACE_reinterpret_cast ( POA_ImplementationRepository::Administration_ptr, - _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/Administration:1.0") + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/Administration:1.0" + ) )->list ( - - how_many, - server_list, - server_iterator - ACE_ENV_ARG_PARAMETER - ); - + ((TAO::Arg_Traits<CORBA::ULong>::in_arg_val *) args[1])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::ServerInformationList>::out_arg_val *) args[2])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::ServerInformationIterator>::out_arg_val *) args[3])->arg () + ACE_ENV_ARG_PARAMETER + ); + ACE_CHECK; } - // // End Direct Proxy Implementation /////////////////////////////////////////////////////////////////////// -// TAO_IDL - Generated from +// TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:98 POA_ImplementationRepository::Administration::Administration (void) @@ -3727,14 +4010,15 @@ POA_ImplementationRepository::Administration::Administration (void) POA_ImplementationRepository::Administration::Administration (const Administration& rhs) : TAO_Abstract_ServantBase (rhs), TAO_ServantBase (rhs) -{} +{ +} POA_ImplementationRepository::Administration::~Administration (void) { } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:98 void POA_ImplementationRepository::Administration::activate_server_skel ( TAO_ServerRequest &_tao_server_request, @@ -3750,58 +4034,63 @@ void POA_ImplementationRepository::Administration::activate_server_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + CORBA::String_var server; - + if (!( (_tao_in >> server.out ()) - )) - ACE_THROW (CORBA::MARSHAL ()); + )) + { + + TAO_InputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->activate_server ( - + server.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -3817,52 +4106,52 @@ void POA_ImplementationRepository::Administration::activate_server_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:98 void POA_ImplementationRepository::Administration::activate_server_with_startup_skel ( TAO_ServerRequest &_tao_server_request, @@ -3880,61 +4169,66 @@ void POA_ImplementationRepository::Administration::activate_server_with_startup_ CORBA::String_var _tao_retval; CORBA::String_var server; CORBA::Long check_startup; - + if (!( (_tao_in >> server.out ()) && (_tao_in >> check_startup) - )) - ACE_THROW (CORBA::MARSHAL ()); + )) + { + + TAO_InputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_activate_server_with_startup _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in (), - + check_startup ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - _tao_retval = + _tao_retval = _tao_impl->activate_server_with_startup ( - + server.in (), - + check_startup ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { char * _tao_retval_info = _tao_retval._retn (); @@ -3953,59 +4247,64 @@ void POA_ImplementationRepository::Administration::activate_server_with_startup_ ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!( (_tao_out << _tao_retval.in ()) - )) - ACE_THROW (CORBA::MARSHAL ()); - + )) + { + + TAO_OutputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:98 void POA_ImplementationRepository::Administration::register_server_skel ( TAO_ServerRequest &_tao_server_request, @@ -4021,64 +4320,69 @@ void POA_ImplementationRepository::Administration::register_server_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + CORBA::String_var server; ImplementationRepository::StartupOptions options; - + if (!( (_tao_in >> server.out ()) && (_tao_in >> options) - )) - ACE_THROW (CORBA::MARSHAL ()); + )) + { + + TAO_InputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_register_server _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in (), - + options ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->register_server ( - + server.in (), - + options ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -4094,52 +4398,52 @@ void POA_ImplementationRepository::Administration::register_server_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:98 void POA_ImplementationRepository::Administration::reregister_server_skel ( TAO_ServerRequest &_tao_server_request, @@ -4155,64 +4459,69 @@ void POA_ImplementationRepository::Administration::reregister_server_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + CORBA::String_var server; ImplementationRepository::StartupOptions options; - + if (!( (_tao_in >> server.out ()) && (_tao_in >> options) - )) - ACE_THROW (CORBA::MARSHAL ()); + )) + { + + TAO_InputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_reregister_server _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in (), - + options ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->reregister_server ( - + server.in (), - + options ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -4228,52 +4537,52 @@ void POA_ImplementationRepository::Administration::reregister_server_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:98 void POA_ImplementationRepository::Administration::remove_server_skel ( TAO_ServerRequest &_tao_server_request, @@ -4289,58 +4598,63 @@ void POA_ImplementationRepository::Administration::remove_server_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + CORBA::String_var server; - + if (!( (_tao_in >> server.out ()) - )) - ACE_THROW (CORBA::MARSHAL ()); + )) + { + + TAO_InputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_remove_server _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->remove_server ( - + server.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -4356,52 +4670,52 @@ void POA_ImplementationRepository::Administration::remove_server_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:98 void POA_ImplementationRepository::Administration::shutdown_server_skel ( TAO_ServerRequest &_tao_server_request, @@ -4417,58 +4731,63 @@ void POA_ImplementationRepository::Administration::shutdown_server_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + CORBA::String_var server; - + if (!( (_tao_in >> server.out ()) - )) - ACE_THROW (CORBA::MARSHAL ()); + )) + { + + TAO_InputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_shutdown_server _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->shutdown_server ( - + server.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -4484,52 +4803,52 @@ void POA_ImplementationRepository::Administration::shutdown_server_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:98 void POA_ImplementationRepository::Administration::server_is_running_skel ( TAO_ServerRequest &_tao_server_request, @@ -4548,66 +4867,71 @@ void POA_ImplementationRepository::Administration::server_is_running_skel ( CORBA::String_var server; CORBA::String_var addr; ImplementationRepository::ServerObject_var server_object; - + if (!( (_tao_in >> server.out ()) && (_tao_in >> addr.out ()) && (_tao_in >> server_object.out ()) - )) - ACE_THROW (CORBA::MARSHAL ()); + )) + { + + TAO_InputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_running _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in (), - + addr.in (), - + server_object.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - _tao_retval = + _tao_retval = _tao_impl->server_is_running ( - + server.in (), - + addr.in (), - + server_object.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { char * _tao_retval_info = _tao_retval._retn (); @@ -4626,59 +4950,64 @@ void POA_ImplementationRepository::Administration::server_is_running_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!( (_tao_out << _tao_retval.in ()) - )) - ACE_THROW (CORBA::MARSHAL ()); - + )) + { + + TAO_OutputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:98 void POA_ImplementationRepository::Administration::server_is_shutting_down_skel ( TAO_ServerRequest &_tao_server_request, @@ -4694,58 +5023,63 @@ void POA_ImplementationRepository::Administration::server_is_shutting_down_skel _tao_servant ); _tao_server_request.argument_flag (0); - + CORBA::String_var server; - + if (!( (_tao_in >> server.out ()) - )) - ACE_THROW (CORBA::MARSHAL ()); + )) + { + + TAO_InputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_server_is_shutting_down _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->server_is_shutting_down ( - + server.in () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -4761,52 +5095,52 @@ void POA_ImplementationRepository::Administration::server_is_shutting_down_skel ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:98 void POA_ImplementationRepository::Administration::find_skel ( TAO_ServerRequest &_tao_server_request, @@ -4821,61 +5155,66 @@ void POA_ImplementationRepository::Administration::find_skel ( POA_ImplementationRepository::Administration *, _tao_servant ); - + CORBA::String_var server; ImplementationRepository::ServerInformation_var info; - + if (!( (_tao_in >> server.out ()) - )) - ACE_THROW (CORBA::MARSHAL ()); + )) + { + + TAO_InputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_find _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + server.in () ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->find ( - + server.in (), - + info.out () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -4891,59 +5230,64 @@ void POA_ImplementationRepository::Administration::find_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!( (_tao_out << info.in ()) - )) - ACE_THROW (CORBA::MARSHAL ()); - + )) + { + + TAO_OutputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:98 void POA_ImplementationRepository::Administration::list_skel ( TAO_ServerRequest &_tao_server_request, @@ -4958,66 +5302,71 @@ void POA_ImplementationRepository::Administration::list_skel ( POA_ImplementationRepository::Administration *, _tao_servant ); - + CORBA::ULong how_many; ImplementationRepository::ServerInformationList_var server_list; - + ImplementationRepository::ServerInformationIterator_var server_iterator; - + if (!( (_tao_in >> how_many) - )) - ACE_THROW (CORBA::MARSHAL ()); + )) + { + + TAO_InputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_Administration_list _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - - how_many + + how_many ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->list ( - + how_many, - + server_list.out (), - + server_iterator.out () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -5033,63 +5382,68 @@ void POA_ImplementationRepository::Administration::list_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!( (_tao_out << server_list.in ()) && (_tao_out << server_iterator.in ()) - )) - ACE_THROW (CORBA::MARSHAL ()); - + )) + { + + TAO_OutputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:163 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:165 void POA_ImplementationRepository::Administration::_is_a_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -5099,22 +5453,22 @@ void POA_ImplementationRepository::Administration::_is_a_skel ( POA_ImplementationRepository::Administration *_tao_impl = (POA_ImplementationRepository::Administration *) _tao_servant; CORBA::Boolean _tao_retval = 0; CORBA::String_var value; - + if (!(_tao_in >> value.out ())) ACE_THROW (CORBA::MARSHAL ()); - + _tao_retval = _tao_impl->_is_a (value.in () ACE_ENV_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval))) ACE_THROW (CORBA::MARSHAL ()); } void POA_ImplementationRepository::Administration::_non_existent_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -5124,16 +5478,16 @@ void POA_ImplementationRepository::Administration::_non_existent_skel ( CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval))) ACE_THROW (CORBA::MARSHAL ()); } void POA_ImplementationRepository::Administration::_interface_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -5142,27 +5496,27 @@ void POA_ImplementationRepository::Administration::_interface_skel ( POA_ImplementationRepository::Administration *_tao_impl = (POA_ImplementationRepository::Administration *) _tao_servant; CORBA::InterfaceDef_ptr _tao_retval = 0; CORBA::Boolean _tao_result = 0; - + TAO_IFR_Client_Adapter *_tao_adapter = ACE_Dynamic_Service<TAO_IFR_Client_Adapter>::instance ( TAO_ORB_Core::ifr_client_adapter_name () ); - + if (_tao_adapter == 0) { ACE_THROW (CORBA::INTF_REPOS ()); } - + ACE_TRY { - _tao_retval = + _tao_retval = _tao_impl->_get_interface (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + _tao_result = _tao_adapter->interfacedef_cdr_insert ( _tao_out, @@ -5174,7 +5528,7 @@ void POA_ImplementationRepository::Administration::_interface_skel ( _tao_adapter->dispose (_tao_retval); } ACE_ENDTRY; - + if (_tao_result == 0) { ACE_THROW (CORBA::MARSHAL ()); @@ -5182,7 +5536,7 @@ void POA_ImplementationRepository::Administration::_interface_skel ( } void POA_ImplementationRepository::Administration::_component_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_object_reference, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -5192,10 +5546,10 @@ void POA_ImplementationRepository::Administration::_component_skel ( CORBA::Object_var _tao_retval = _tao_impl->_get_component (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << _tao_retval._retn ())) ACE_THROW (CORBA::MARSHAL ()); } @@ -5233,13 +5587,13 @@ void* POA_ImplementationRepository::Administration::_downcast ( { return ACE_static_cast (POA_ImplementationRepository::Administration_ptr, this); } - + if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0) { return ACE_static_cast(PortableServer::Servant, this); } - + return 0; } @@ -5249,7 +5603,7 @@ const char* POA_ImplementationRepository::Administration::_interface_repository_ } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:532 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:539 void POA_ImplementationRepository::Administration::_dispatch ( TAO_ServerRequest &req, @@ -5264,17 +5618,17 @@ void POA_ImplementationRepository::Administration::_dispatch ( } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:478 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:479 ImplementationRepository::Administration * POA_ImplementationRepository::Administration::_this (ACE_ENV_SINGLE_ARG_DECL) { TAO_Stub *stub = this->_create_stub (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + TAO_Stub_Auto_Ptr safe_stub (stub); CORBA::Object_ptr tmp = CORBA::Object::_nil (); - + if (stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects ()) { ACE_NEW_RETURN ( @@ -5299,14 +5653,19 @@ POA_ImplementationRepository::Administration::_this (ACE_ENV_SINGLE_ARG_DECL) 0 ); } - + CORBA::Object_var obj = tmp; (void) safe_stub.release (); - return ::ImplementationRepository::Administration::_unchecked_narrow (obj.in ()); + typedef ::ImplementationRepository::Administration STUB_SCOPED_NAME; + return + TAO::Narrow_Utils<STUB_SCOPED_NAME>::unchecked_narrow ( + obj.in (), + ImplementationRepository__TAO_Administration_Proxy_Broker_Factory_function_pointer + ); } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:1731 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:1403 class TAO_ImplementationRepository_ServerInformationIterator_Perfect_Hash_OpTable : public TAO_Perfect_Hash_OpTable { @@ -5317,7 +5676,7 @@ public: }; /* C++ code produced by gperf version 2.8 (ACE version) */ -/* Command-line: gperf -m -M -J -c -C -D -E -T -f 0 -F 0 -a -o -t -p -K opname_ -L C++ -Z TAO_ImplementationRepository_ServerInformationIterator_Perfect_Hash_OpTable -N lookup */ +/* Command-line: gperf -m -M -J -c -C -D -E -T -f 0 -F 0,0,0 -a -o -t -p -K opname_ -L C++ -Z TAO_ImplementationRepository_ServerInformationIterator_Perfect_Hash_OpTable -N lookup */ unsigned int TAO_ImplementationRepository_ServerInformationIterator_Perfect_Hash_OpTable::hash (const char *str, unsigned int len) { @@ -5386,16 +5745,16 @@ TAO_ImplementationRepository_ServerInformationIterator_Perfect_Hash_OpTable::loo static const class TAO_operation_db_entry wordlist[] = { - {"",0},{"",0},{"",0},{"",0},{"",0}, - {"_is_a", &POA_ImplementationRepository::ServerInformationIterator::_is_a_skel}, - {"next_n", &POA_ImplementationRepository::ServerInformationIterator::next_n_skel}, - {"destroy", &POA_ImplementationRepository::ServerInformationIterator::destroy_skel}, - {"",0},{"",0}, - {"_component", &POA_ImplementationRepository::ServerInformationIterator::_component_skel}, - {"",0},{"",0}, - {"_non_existent", &POA_ImplementationRepository::ServerInformationIterator::_non_existent_skel}, - {"",0}, - {"_interface", &POA_ImplementationRepository::ServerInformationIterator::_interface_skel}, + {"",0,0,0},{"",0,0,0},{"",0,0,0},{"",0,0,0},{"",0,0,0}, + {"_is_a", &POA_ImplementationRepository::ServerInformationIterator::_is_a_skel, 0, 0}, + {"next_n", &POA_ImplementationRepository::ServerInformationIterator::next_n_skel, &POA_ImplementationRepository::_TAO_ServerInformationIterator_ThruPOA_Proxy_Impl::next_n, &POA_ImplementationRepository::_TAO_ServerInformationIterator_Direct_Proxy_Impl::next_n}, + {"destroy", &POA_ImplementationRepository::ServerInformationIterator::destroy_skel, &POA_ImplementationRepository::_TAO_ServerInformationIterator_ThruPOA_Proxy_Impl::destroy, &POA_ImplementationRepository::_TAO_ServerInformationIterator_Direct_Proxy_Impl::destroy}, + {"",0,0,0},{"",0,0,0}, + {"_component", &POA_ImplementationRepository::ServerInformationIterator::_component_skel, 0, 0}, + {"",0,0,0},{"",0,0,0}, + {"_non_existent", &POA_ImplementationRepository::ServerInformationIterator::_non_existent_skel, 0, 0}, + {"",0,0,0}, + {"_interface", &POA_ImplementationRepository::ServerInformationIterator::_interface_skel, 0, 0}, }; if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) @@ -5432,48 +5791,49 @@ public: const CORBA::ULong & how_many ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + void result (CORBA::Boolean result); private: TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n ( const TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n & ); - + private: POA_ImplementationRepository::ServerInformationIterator *_tao_impl; - - const CORBA::ULong & how_many_;CORBA::Boolean _result; + + const CORBA::ULong & how_many_; + CORBA::Boolean _result; }; // TAO_IDL - Generated from @@ -5501,15 +5861,15 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n: Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + Dynamic::ParameterList_var safe_parameter_list = parameter_list; parameter_list->length (1); CORBA::ULong len = 0; - + (*parameter_list)[len].argument <<= how_many_; (*parameter_list)[len].mode = CORBA::PARAM_IN; len++; - + return safe_parameter_list._retn (); } @@ -5523,11 +5883,11 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n: Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return exception_list; } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -5538,11 +5898,11 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n: CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + CORBA::Any_var safe_result_any = result_any; - + (*result_any) <<= CORBA::Any::from_boolean (this->_result); - + return safe_result_any._retn (); } @@ -5566,7 +5926,7 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n: return this->_tao_impl->_is_a (id ACE_ENV_ARG_PARAMETER); } -void +void TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n::result (CORBA::Boolean result) { // Update the result. @@ -5585,45 +5945,45 @@ public: POA_ImplementationRepository::ServerInformationIterator *tao_impl ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual Dynamic::ParameterList * arguments ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual Dynamic::ExceptionList * exceptions ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Any * result ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual char * target_most_derived_interface ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + virtual CORBA::Boolean target_is_a ( const char * id ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC ((CORBA::SystemException)); - + private: TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy ( const TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy & ); - + void operator= ( const TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy & ); - + private: POA_ImplementationRepository::ServerInformationIterator *_tao_impl; - + }; // TAO_IDL - Generated from @@ -5649,7 +6009,7 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy Dynamic::ParameterList *parameter_list = TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return parameter_list; } @@ -5663,11 +6023,11 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy Dynamic::ExceptionList *exception_list = TAO_RequestInfo_Util::make_exception_list (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return exception_list; } -CORBA::Any * +CORBA::Any * TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy::result ( ACE_ENV_SINGLE_ARG_DECL ) @@ -5678,7 +6038,7 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy CORBA::Any *result_any = TAO_RequestInfo_Util::make_any (tk_void_any ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + return result_any; } @@ -5712,7 +6072,8 @@ TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/strategized_proxy_broker_ss.cpp:40 // Factory function Implementation. -POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_Broker *POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_Broker::the_TAO_ServerInformationIterator_Strategized_Proxy_Broker (void) +POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_Broker * +POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_Broker::the_TAO_ServerInformationIterator_Strategized_Proxy_Broker (void) { static POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_Broker strategized_proxy_broker; return &strategized_proxy_broker; @@ -5720,86 +6081,73 @@ POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_B POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_Broker::_TAO_ServerInformationIterator_Strategized_Proxy_Broker (void) { - for (int i = 0; i < TAO_Collocation_Strategies::CS_LAST; ++i) - { - this->proxy_cache_[i] = 0; - } } POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_Broker::~_TAO_ServerInformationIterator_Strategized_Proxy_Broker (void) { - for (int i = 0; i < TAO_Collocation_Strategies::CS_LAST; ++i) - { - delete this->proxy_cache_[i]; - - // Hack to prevent bug mentioned in 1204. Refer to 1204 - // for details.. - this->proxy_cache_[i] = 0; - } } -ImplementationRepository::_TAO_ServerInformationIterator_Proxy_Impl& -POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_Broker::select_proxy ( - ::ImplementationRepository::ServerInformationIterator *object +TAO::Collocation_Strategy +POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_Broker::get_strategy ( + CORBA::Object_ptr obj ACE_ENV_ARG_DECL ) + ACE_THROW_SPEC ((CORBA::SystemException)) { - int strategy = - TAO_ORB_Core::collocation_strategy (object ACE_ENV_ARG_PARAMETER); - ACE_CHECK_RETURN (*this->proxy_cache_[strategy]); - - if (this->proxy_cache_[strategy] != 0) - { - return *this->proxy_cache_[strategy]; - } - - this->create_proxy (strategy ACE_ENV_ARG_PARAMETER); - ACE_CHECK_RETURN (*this->proxy_cache_[strategy]); - - return *this->proxy_cache_[strategy]; + TAO::Collocation_Strategy strategy = + TAO_ORB_Core::collocation_strategy_new (obj ACE_ENV_ARG_PARAMETER); + ACE_CHECK_RETURN (TAO::TAO_CS_REMOTE_STRATEGY); + + return strategy; } void -POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_Broker::create_proxy ( - int strategy +POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_Broker::dispatch ( + CORBA::Object_ptr obj, + CORBA::Object_out forward_obj, + TAO::Argument ** args, + int num_args, + const char * op, + size_t op_len, + TAO::Collocation_Strategy strategy ACE_ENV_ARG_DECL ) + ACE_THROW_SPEC ((CORBA::Exception)) { - ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->mutex_); - - if (this->proxy_cache_[strategy] == 0) + TAO_Collocated_Skeleton collocated_skel; + + if (obj->_servant ()->_find (op, + collocated_skel, + strategy, + op_len) == -1) + ACE_THROW (CORBA::BAD_OPERATION ()); + + ACE_TRY { - switch (strategy) - { - case TAO_Collocation_Strategies::CS_THRU_POA_STRATEGY: - ACE_NEW_THROW_EX ( - this->proxy_cache_[strategy], - POA_ImplementationRepository::_TAO_ServerInformationIterator_ThruPOA_Proxy_Impl, - CORBA::NO_MEMORY () - ); - ACE_CHECK; - break; - - case TAO_Collocation_Strategies::CS_DIRECT_STRATEGY: - ACE_NEW_THROW_EX ( - this->proxy_cache_[strategy], - POA_ImplementationRepository::_TAO_ServerInformationIterator_Direct_Proxy_Impl, - CORBA::NO_MEMORY () - ); - ACE_CHECK; - break; - - case TAO_Collocation_Strategies::CS_REMOTE_STRATEGY: - default: - ACE_NEW_THROW_EX ( - this->proxy_cache_[strategy], - ::ImplementationRepository::_TAO_ServerInformationIterator_Remote_Proxy_Impl, - CORBA::NO_MEMORY () - ); - ACE_CHECK; - break; - } + collocated_skel ( + obj, + forward_obj, + args, + num_args + ACE_ENV_ARG_PARAMETER); + ACE_TRY_CHECK; + } + #if (TAO_HAS_MINIMUM_CORBA == 0) + ACE_CATCH (PortableServer::ForwardRequest, forward_request) + { + forward_obj = + CORBA::Object::_duplicate (forward_request.forward_reference.in ()); + return; + } +#else + ACE_CATCHANY + { + ACE_UNUSED_ARG (forward_obj); + ACE_RE_THROW; } +#endif /* TAO_HAS_MINIMUM_CORBA */ + ACE_ENDTRY; + ACE_CHECK; } // @@ -5807,26 +6155,32 @@ POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_B /////////////////////////////////////////////////////////////////////// // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:598 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:603 -ImplementationRepository::_TAO_ServerInformationIterator_Proxy_Broker * -ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_function (CORBA::Object_ptr obj) +TAO::Collocation_Proxy_Broker * +ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_function (CORBA::Object_ptr) { - ACE_UNUSED_ARG (obj); - return ::POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_Broker::the_TAO_ServerInformationIterator_Strategized_Proxy_Broker(); + return + ::POA_ImplementationRepository::_TAO_ServerInformationIterator_Strategized_Proxy_Broker::the_TAO_ServerInformationIterator_Strategized_Proxy_Broker(); } int ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_Initializer (size_t) { - ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_function_pointer = + ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_function_pointer = ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_function; - + return 0; } -static int ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Stub_Factory_Initializer_Scarecrow = - ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_Initializer (ACE_reinterpret_cast (size_t, ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_Initializer)); +static int +ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Stub_Factory_Initializer_Scarecrow = + ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_Initializer ( + ACE_reinterpret_cast ( + size_t, + ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_Initializer + ) + ); /////////////////////////////////////////////////////////////////////// @@ -5841,94 +6195,99 @@ POA_ImplementationRepository::_TAO_ServerInformationIterator_ThruPOA_Proxy_Impl: // ThruPOA Implementation of the IDL interface methods -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:52 -CORBA::Boolean POA_ImplementationRepository::_TAO_ServerInformationIterator_ThruPOA_Proxy_Impl::next_n ( - CORBA::Object *_collocated_tao_target_, - CORBA::ULong how_many, - ImplementationRepository::ServerInformationList_out server_list +void +POA_ImplementationRepository::_TAO_ServerInformationIterator_ThruPOA_Proxy_Impl::next_n ( + CORBA::Object_ptr obj, + CORBA::Object_out forward, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException )) { - CORBA::Boolean _tao_retval = 0; - ACE_UNUSED_ARG (_tao_retval); TAO_Object_Adapter::Servant_Upcall servant_upcall ( - _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () + obj->_stubobj ()->servant_orb_var ()->orb_core () ); - CORBA::Object_var forward_to; + servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_stubobj ()->object_key (), + obj->_stubobj ()->object_key (), "next_n", - forward_to.out () + forward ACE_ENV_ARG_PARAMETER ); - ACE_CHECK_RETURN (_tao_retval); - + ACE_CHECK; + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); - ACE_CHECK_RETURN (_tao_retval); - - return ACE_reinterpret_cast ( - POA_ImplementationRepository::ServerInformationIterator_ptr, - servant_upcall.servant ()->_downcast ( - "IDL:ImplementationRepository/ServerInformationIterator:1.0" - ) - )->next_n ( - - how_many, - server_list - ACE_ENV_ARG_PARAMETER - ); + ACE_CHECK; + + ((TAO::Arg_Traits<ACE_InputCDR::to_boolean>::ret_val *) args[0])->arg () = + ACE_reinterpret_cast ( + POA_ImplementationRepository::ServerInformationIterator_ptr, + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/ServerInformationIterator:1.0" + ) + )->next_n ( + ((TAO::Arg_Traits<CORBA::ULong>::in_arg_val *) args[1])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::ServerInformationList>::out_arg_val *) args[2])->arg () + ACE_ENV_ARG_PARAMETER + ); + ACE_CHECK; } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:67 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/thru_poa_proxy_impl_ss.cpp:52 -void POA_ImplementationRepository::_TAO_ServerInformationIterator_ThruPOA_Proxy_Impl::destroy ( - CORBA::Object *_collocated_tao_target_ +void +POA_ImplementationRepository::_TAO_ServerInformationIterator_ThruPOA_Proxy_Impl::destroy ( + CORBA::Object_ptr obj, + CORBA::Object_out forward, + TAO::Argument **, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException )) { - TAO_Object_Adapter::Servant_Upcall servant_upcall ( - _collocated_tao_target_->_stubobj ()->servant_orb_var ()->orb_core () + obj->_stubobj ()->servant_orb_var ()->orb_core () ); - CORBA::Object_var forward_to; + servant_upcall.prepare_for_upcall ( - _collocated_tao_target_->_stubobj ()->object_key (), + obj->_stubobj ()->object_key (), "destroy", - forward_to.out () + forward ACE_ENV_ARG_PARAMETER ); ACE_CHECK; - + servant_upcall.pre_invoke_collocated_request ( ACE_ENV_SINGLE_ARG_PARAMETER ); ACE_CHECK; - + ACE_reinterpret_cast ( POA_ImplementationRepository::ServerInformationIterator_ptr, servant_upcall.servant ()->_downcast ( "IDL:ImplementationRepository/ServerInformationIterator:1.0" ) )->destroy ( - ACE_ENV_SINGLE_ARG_PARAMETER ); + ACE_CHECK; } // // End ThruPOA Proxy Implementation /////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////// // Direct Proxy Implementation // @@ -5936,50 +6295,72 @@ void POA_ImplementationRepository::_TAO_ServerInformationIterator_ThruPOA_Proxy_ POA_ImplementationRepository::_TAO_ServerInformationIterator_Direct_Proxy_Impl::_TAO_ServerInformationIterator_Direct_Proxy_Impl (void) {} -CORBA::Boolean POA_ImplementationRepository::_TAO_ServerInformationIterator_Direct_Proxy_Impl::next_n ( - CORBA::Object *_collocated_tao_target_, - CORBA::ULong how_many, - ImplementationRepository::ServerInformationList_out server_list +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/direct_proxy_impl_ss.cpp:42 + +void +POA_ImplementationRepository::_TAO_ServerInformationIterator_Direct_Proxy_Impl::next_n ( + CORBA::Object_ptr obj, + CORBA::Object_out, + TAO::Argument ** args, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException - )){ - return ACE_reinterpret_cast ( - POA_ImplementationRepository::ServerInformationIterator_ptr, - _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/ServerInformationIterator:1.0") - )->next_n ( - - how_many, - server_list + )) +{ + TAO_Object_Adapter::Servant_Upcall servant_upcall ( + obj->_stubobj ()->servant_orb_var ()->orb_core () + ); + + ((TAO::Arg_Traits<ACE_InputCDR::to_boolean>::ret_val *) args[0])->arg () = + ACE_reinterpret_cast ( + POA_ImplementationRepository::ServerInformationIterator_ptr, + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/ServerInformationIterator:1.0" + ) + )->next_n ( + ((TAO::Arg_Traits<CORBA::ULong>::in_arg_val *) args[1])->arg (), + ((TAO::Arg_Traits<ImplementationRepository::ServerInformationList>::out_arg_val *) args[2])->arg () ACE_ENV_ARG_PARAMETER ); + ACE_CHECK; +}// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/direct_proxy_impl_ss.cpp:42 -} - -void POA_ImplementationRepository::_TAO_ServerInformationIterator_Direct_Proxy_Impl::destroy ( - CORBA::Object *_collocated_tao_target_ +void +POA_ImplementationRepository::_TAO_ServerInformationIterator_Direct_Proxy_Impl::destroy ( + CORBA::Object_ptr obj, + CORBA::Object_out, + TAO::Argument **, + int ACE_ENV_ARG_DECL ) ACE_THROW_SPEC (( CORBA::SystemException - )){ + )) +{ + TAO_Object_Adapter::Servant_Upcall servant_upcall ( + obj->_stubobj ()->servant_orb_var ()->orb_core () + ); + ACE_reinterpret_cast ( POA_ImplementationRepository::ServerInformationIterator_ptr, - _collocated_tao_target_->_servant ()->_downcast ("IDL:ImplementationRepository/ServerInformationIterator:1.0") + servant_upcall.servant ()->_downcast ( + "IDL:ImplementationRepository/ServerInformationIterator:1.0" + ) )->destroy ( - - ACE_ENV_SINGLE_ARG_PARAMETER - ); - + ACE_ENV_SINGLE_ARG_PARAMETER + ); + ACE_CHECK; } - // // End Direct Proxy Implementation /////////////////////////////////////////////////////////////////////// -// TAO_IDL - Generated from +// TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:98 POA_ImplementationRepository::ServerInformationIterator::ServerInformationIterator (void) @@ -5990,14 +6371,15 @@ POA_ImplementationRepository::ServerInformationIterator::ServerInformationIterat POA_ImplementationRepository::ServerInformationIterator::ServerInformationIterator (const ServerInformationIterator& rhs) : TAO_Abstract_ServantBase (rhs), TAO_ServantBase (rhs) -{} +{ +} POA_ImplementationRepository::ServerInformationIterator::~ServerInformationIterator (void) { } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:98 void POA_ImplementationRepository::ServerInformationIterator::next_n_skel ( TAO_ServerRequest &_tao_server_request, @@ -6015,59 +6397,64 @@ void POA_ImplementationRepository::ServerInformationIterator::next_n_skel ( CORBA::Boolean _tao_retval = 0; CORBA::ULong how_many; ImplementationRepository::ServerInformationList_var server_list; - - + + if (!( (_tao_in >> how_many) - )) - ACE_THROW (CORBA::MARSHAL ()); + )) + { + + TAO_InputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_next_n _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl, - + how_many ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - _tao_retval = + _tao_retval = _tao_impl->next_n ( - + how_many, - + server_list.out () ACE_ENV_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { CORBA::Boolean _tao_retval_info = _tao_retval; @@ -6085,60 +6472,65 @@ void POA_ImplementationRepository::ServerInformationIterator::next_n_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!( (_tao_out << CORBA::Any::from_boolean (_tao_retval)) && (_tao_out << server_list.in ()) - )) - ACE_THROW (CORBA::MARSHAL ()); - + )) + { + + TAO_OutputCDR::throw_skel_exception (errno ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + } + + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:100 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/operation_ss.cpp:98 void POA_ImplementationRepository::ServerInformationIterator::destroy_skel ( TAO_ServerRequest &_tao_server_request, @@ -6153,49 +6545,49 @@ void POA_ImplementationRepository::ServerInformationIterator::destroy_skel ( _tao_servant ); _tao_server_request.argument_flag (0); - + #if (TAO_HAS_INTERCEPTORS == 1) TAO_Object_Adapter::Servant_Upcall *_tao_upcall = ACE_static_cast (TAO_Object_Adapter::Servant_Upcall *, _tao_servant_upcall); - + TAO_ServerRequestInterceptor_Adapter _tao_vfr ( _tao_server_request.orb_core ()->server_request_interceptors (), _tao_server_request.interceptor_count () ); - + TAO_ServerRequestInfo_ImplementationRepository_ServerInformationIterator_destroy _tao_ri ( _tao_server_request, _tao_upcall, _tao_impl ACE_ENV_ARG_PARAMETER ); - + ACE_TRY { { TAO_PICurrent_Guard _tao_pi_guard (_tao_ri.server_request (), 1 /* Copy TSC to RSC */); - + _tao_vfr.receive_request (&_tao_ri ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - + if (!_tao_vfr.location_forwarded ()) { - + #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_impl->destroy ( - + ACE_ENV_SINGLE_ARG_PARAMETER ); TAO_INTERCEPTOR_CHECK; #if (TAO_HAS_INTERCEPTORS == 1) - + } } - + if (!_tao_vfr.location_forwarded ()) { _tao_ri.reply_status (PortableInterceptor::SUCCESSFUL); @@ -6211,55 +6603,55 @@ void POA_ImplementationRepository::ServerInformationIterator::destroy_skel ( ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION || _tao_status == PortableInterceptor::USER_EXCEPTION) { ACE_RE_THROW; } } - + # if defined (ACE_HAS_EXCEPTIONS) \ && defined (ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS) ACE_CATCHALL { CORBA::UNKNOWN ex; - + _tao_ri.exception (&ex); _tao_vfr.send_exception ( &_tao_ri ACE_ENV_ARG_PARAMETER ); ACE_TRY_CHECK; - + PortableInterceptor::ReplyStatus _tao_status = _tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + if (_tao_status == PortableInterceptor::SYSTEM_EXCEPTION) ACE_TRY_THROW (ex); } # endif /* ACE_HAS_EXCEPTIONS && ACE_HAS_BROKEN_UNEXPECTED_EXCEPTIONS */ - + ACE_ENDTRY; ACE_CHECK; #endif /* TAO_HAS_INTERCEPTORS */ - + _tao_server_request.init_reply (); - + // In case _tao_servant_upcall is not used in this function ACE_UNUSED_ARG (_tao_servant_upcall); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:163 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:165 void POA_ImplementationRepository::ServerInformationIterator::_is_a_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -6269,22 +6661,22 @@ void POA_ImplementationRepository::ServerInformationIterator::_is_a_skel ( POA_ImplementationRepository::ServerInformationIterator *_tao_impl = (POA_ImplementationRepository::ServerInformationIterator *) _tao_servant; CORBA::Boolean _tao_retval = 0; CORBA::String_var value; - + if (!(_tao_in >> value.out ())) ACE_THROW (CORBA::MARSHAL ()); - + _tao_retval = _tao_impl->_is_a (value.in () ACE_ENV_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval))) ACE_THROW (CORBA::MARSHAL ()); } void POA_ImplementationRepository::ServerInformationIterator::_non_existent_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -6294,16 +6686,16 @@ void POA_ImplementationRepository::ServerInformationIterator::_non_existent_skel CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << CORBA::Any::from_boolean (_tao_retval))) ACE_THROW (CORBA::MARSHAL ()); } void POA_ImplementationRepository::ServerInformationIterator::_interface_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_servant, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -6312,27 +6704,27 @@ void POA_ImplementationRepository::ServerInformationIterator::_interface_skel ( POA_ImplementationRepository::ServerInformationIterator *_tao_impl = (POA_ImplementationRepository::ServerInformationIterator *) _tao_servant; CORBA::InterfaceDef_ptr _tao_retval = 0; CORBA::Boolean _tao_result = 0; - + TAO_IFR_Client_Adapter *_tao_adapter = ACE_Dynamic_Service<TAO_IFR_Client_Adapter>::instance ( TAO_ORB_Core::ifr_client_adapter_name () ); - + if (_tao_adapter == 0) { ACE_THROW (CORBA::INTF_REPOS ()); } - + ACE_TRY { - _tao_retval = + _tao_retval = _tao_impl->_get_interface (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; - + _tao_server_request.init_reply (); - + TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + _tao_result = _tao_adapter->interfacedef_cdr_insert ( _tao_out, @@ -6344,7 +6736,7 @@ void POA_ImplementationRepository::ServerInformationIterator::_interface_skel ( _tao_adapter->dispose (_tao_retval); } ACE_ENDTRY; - + if (_tao_result == 0) { ACE_THROW (CORBA::MARSHAL ()); @@ -6352,7 +6744,7 @@ void POA_ImplementationRepository::ServerInformationIterator::_interface_skel ( } void POA_ImplementationRepository::ServerInformationIterator::_component_skel ( - TAO_ServerRequest &_tao_server_request, + TAO_ServerRequest &_tao_server_request, void * _tao_object_reference, void * /* Servant_Upcall */ ACE_ENV_ARG_DECL @@ -6362,10 +6754,10 @@ void POA_ImplementationRepository::ServerInformationIterator::_component_skel ( CORBA::Object_var _tao_retval = _tao_impl->_get_component (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - + _tao_server_request.init_reply (); TAO_OutputCDR &_tao_out = _tao_server_request.outgoing (); - + if (!(_tao_out << _tao_retval._retn ())) ACE_THROW (CORBA::MARSHAL ()); } @@ -6403,13 +6795,13 @@ void* POA_ImplementationRepository::ServerInformationIterator::_downcast ( { return ACE_static_cast (POA_ImplementationRepository::ServerInformationIterator_ptr, this); } - + if (ACE_OS::strcmp (logical_type_id, "IDL:omg.org/CORBA/Object:1.0") == 0) { return ACE_static_cast(PortableServer::Servant, this); } - + return 0; } @@ -6419,7 +6811,7 @@ const char* POA_ImplementationRepository::ServerInformationIterator::_interface_ } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:532 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:539 void POA_ImplementationRepository::ServerInformationIterator::_dispatch ( TAO_ServerRequest &req, @@ -6434,17 +6826,17 @@ void POA_ImplementationRepository::ServerInformationIterator::_dispatch ( } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:478 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:479 ImplementationRepository::ServerInformationIterator * POA_ImplementationRepository::ServerInformationIterator::_this (ACE_ENV_SINGLE_ARG_DECL) { TAO_Stub *stub = this->_create_stub (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); - + TAO_Stub_Auto_Ptr safe_stub (stub); CORBA::Object_ptr tmp = CORBA::Object::_nil (); - + if (stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects ()) { ACE_NEW_RETURN ( @@ -6469,10 +6861,80 @@ POA_ImplementationRepository::ServerInformationIterator::_this (ACE_ENV_SINGLE_A 0 ); } - + CORBA::Object_var obj = tmp; (void) safe_stub.release (); - return ::ImplementationRepository::ServerInformationIterator::_unchecked_narrow (obj.in ()); + typedef ::ImplementationRepository::ServerInformationIterator STUB_SCOPED_NAME; + return + TAO::Narrow_Utils<STUB_SCOPED_NAME>::unchecked_narrow ( + obj.in (), + ImplementationRepository__TAO_ServerInformationIterator_Proxy_Broker_Factory_function_pointer + ); } +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_root/root.cpp:1740 + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + + template class + TAO::Out_Var_Size_SArgument_T< + ImplementationRepository::ServerInformationList, + ImplementationRepository::ServerInformationList_out + >; + + template class + TAO::In_Var_Size_SArgument_T< + ImplementationRepository::StartupOptions + >; + + template class + TAO::In_Object_SArgument_T< + ImplementationRepository::ServerObject_ptr + >; + + template class + TAO::Out_Var_Size_SArgument_T< + ImplementationRepository::ServerInformation, + ImplementationRepository::ServerInformation_out + >; + + template class + TAO::Out_Object_SArgument_T< + ImplementationRepository::ServerInformationIterator_ptr, + ImplementationRepository::ServerInformationIterator_out + >; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +# pragma instantiate \ + TAO::Out_Var_Size_SArgument_T< \ + ImplementationRepository::ServerInformationList, \ + ImplementationRepository::ServerInformationList_out \ + > + +# pragma instantiate \ + TAO::In_Var_Size_SArgument_T< \ + ImplementationRepository::StartupOptions \ + > + +# pragma instantiate \ + TAO::In_Object_SArgument_T< \ + ImplementationRepository::ServerObject_ptr \ + > + +# pragma instantiate \ + TAO::Out_Var_Size_SArgument_T< \ + ImplementationRepository::ServerInformation, \ + ImplementationRepository::ServerInformation_out \ + > + +# pragma instantiate \ + TAO::Out_Object_SArgument_T< \ + ImplementationRepository::ServerInformationIterator_ptr, \ + ImplementationRepository::ServerInformationIterator_out \ + > + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + #endif /* ifndef */ |