diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
commit | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (patch) | |
tree | da50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp | |
parent | 0e555b9150d38e3b3473ba325b56db2642e6352b (diff) | |
download | ATCD-6b846cf03c0bcbd8c276cb0af61a181e5f98eaae.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp deleted file mode 100644 index abfe60c3f23..00000000000 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "orbsvcs/LoadBalancing/LB_ClientComponent.h" -#include "orbsvcs/LoadBalancing/LB_ClientORBInitializer.h" - -#include "tao/ORB_Constants.h" -#include "tao/ORBInitializer_Registry.h" - -ACE_RCSID (LoadBalancing, - LB_ClientComponent, - "$Id$") - -TAO_BEGIN_VERSIONED_NAMESPACE_DECL - -int -TAO_LB_ClientComponent::init (int /* argc */, ACE_TCHAR * /* argv */[]) -{ - return this->register_orb_initializer (); -} - -int -TAO_LB_ClientComponent::fini (void) -{ - return 0; -} - -int -TAO_LB_ClientComponent::register_orb_initializer (void) -{ - ACE_DECLARE_NEW_CORBA_ENV; - ACE_TRY - { - // Register the LB_ClientComponent ORB initializer. - PortableInterceptor::ORBInitializer_ptr tmp; - ACE_NEW_THROW_EX (tmp, - TAO_LB_ClientORBInitializer, - CORBA::NO_MEMORY ( - CORBA::SystemException::_tao_minor_code ( - TAO::VMCID, - ENOMEM), - CORBA::COMPLETED_NO)); - ACE_TRY_CHECK; - - PortableInterceptor::ORBInitializer_var initializer = tmp; - - PortableInterceptor::register_orb_initializer (initializer.in () - ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "Unable to register LB_ClientComponent ORB " - "initializer."); - return -1; - } - ACE_ENDTRY; - - return 0; -} - -TAO_END_VERSIONED_NAMESPACE_DECL - -ACE_STATIC_SVC_DEFINE (TAO_LB_ClientComponent, - ACE_TEXT ("LB_ClientComponent"), - ACE_SVC_OBJ_T, - &ACE_SVC_NAME (TAO_LB_ClientComponent), - ACE_Service_Type::DELETE_THIS | - ACE_Service_Type::DELETE_OBJ, - 0) - -ACE_FACTORY_DEFINE (TAO_LoadBalancing, TAO_LB_ClientComponent) |