#include <Notify_EventChannelFactory_i.h>
Static Public Member Functions | |
| CosNotifyChannelAdmin::EventChannelFactory_ptr | create (PortableServer::POA_ptr default_POA ACE_ENV_ARG_DECL) |
Definition at line 33 of file Notify_EventChannelFactory_i.h.
|
|
Create a factory servant and activates it with the default POA. Also creates a resource factory and assigns it this default_POA. Definition at line 13 of file Notify_EventChannelFactory_i.cpp. References ACE_CHECK_RETURN, ACE_DEBUG, ACE_ENV_ARG_PARAMETER, TAO_Notify_Service::create(), TAO_Notify_Service::init_service(), ACE_Dynamic_Service< TYPE >::instance(), LM_DEBUG, TAO_ORB_Core::orb(), TAO_Root_POA::orb_core(), and TAO_COS_NOTIFICATION_SERVICE_NAME.
00014 {
00015 CosNotifyChannelAdmin::EventChannelFactory_var notify_factory;
00016
00017 TAO_Notify_Service* notify_service = ACE_Dynamic_Service<TAO_Notify_Service>::instance (TAO_COS_NOTIFICATION_SERVICE_NAME);
00018
00019 if (notify_service == 0)
00020 {
00021 ACE_DEBUG ((LM_DEBUG, "Service not found! check conf. file\n"));
00022 return notify_factory._retn ();
00023 }
00024
00025 TAO_Root_POA *poa = dynamic_cast <TAO_Root_POA*> (default_POA);
00026
00027 if (poa == 0)
00028 return notify_factory._retn ();
00029
00030 CORBA::ORB_ptr orb = poa->orb_core ().orb () ;
00031
00032 notify_service->init_service (orb ACE_ENV_ARG_PARAMETER);
00033 ACE_CHECK_RETURN (notify_factory._retn ());
00034
00035 notify_factory = notify_service->create (default_POA ACE_ENV_ARG_PARAMETER);
00036 ACE_CHECK_RETURN (notify_factory._retn ());
00037
00038 return notify_factory._retn ();
00039 }
|
1.3.6