1 #include "tao/Fault_Tolerance_Service.h"
2 #include "tao/Services_Activate.h"
3 #include "tao/ORB_Core.h"
4 #include "tao/Client_Strategy_Factory.h"
6 #include "ace/Dynamic_Service.h"
8 #if !defined (__ACE_INLINE__)
9 # include "tao/Fault_Tolerance_Service.inl"
10 #endif /* __ACE_INLINE__ */
12 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
14 TAO_Fault_Tolerance_Service::~TAO_Fault_Tolerance_Service ()
16 delete this->ft_service_callback_
;
20 TAO_Fault_Tolerance_Service::init (TAO_ORB_Core
*orb_core
)
22 // Look in to the svc conf stuff to get an instance of the
24 if (this->ft_service_callback_
== nullptr)
26 TAO_Services_Activate
*service
=
27 ACE_Dynamic_Service
<TAO_Services_Activate
>::instance ("FT_ClientService_Activate");
29 // Activate the callback
31 this->ft_service_callback_
= service
->activate_services (orb_core
);
37 TAO_END_VERSIONED_NAMESPACE_DECL