1 #include "tao/RTCORBA/RT_Stub_Factory.h"
3 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
5 #include "tao/RTCORBA/RT_Stub.h"
7 #include "tao/ORB_Constants.h"
8 #include "tao/SystemException.h"
10 #include "ace/Log_Msg.h"
12 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
14 TAO_RT_Stub_Factory::~TAO_RT_Stub_Factory ()
19 TAO_RT_Stub_Factory::create_stub (const char *repository_id
,
20 const TAO_MProfile
&profiles
,
21 TAO_ORB_Core
*orb_core
)
25 ACE_NEW_THROW_EX (retval
,
26 TAO_RT_Stub (repository_id
, profiles
, orb_core
),
27 CORBA::NO_MEMORY (TAO::VMCID
,
28 CORBA::COMPLETED_MAYBE
));
34 // ****************************************************************
36 ACE_STATIC_SVC_DEFINE (TAO_RT_Stub_Factory
,
37 ACE_TEXT ("RT_Stub_Factory"),
39 &ACE_SVC_NAME (TAO_RT_Stub_Factory
),
40 ACE_Service_Type::DELETE_THIS
| ACE_Service_Type::DELETE_OBJ
,
42 ACE_FACTORY_DEFINE (TAO_RTCORBA
, TAO_RT_Stub_Factory
)
44 TAO_END_VERSIONED_NAMESPACE_DECL
46 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */