3.7.3.1 Usage Notes
- During server application initialization, the application constructs the object reference for an application factory. It then invokes the
register_factory()
method, passing in the factory's object reference together with a factoryid
field. On server release (shutdown), the application uses theunregister_factory()
method to unregister the factory. - The
TP
class is a C++ native class. - The
TP.h
file contains the declarations and definitions for theTP
class.
C++ Declarations (in TP.h
)
The C++ mapping is as follows:
class TP {
public:
static CORBA::Object_ptr create_object_reference(
const char* interfaceName,
const char* stroid,
CORBA::NVList_ptr criteria);
static CORBA::Object_ptr create_active_object_reference(
const char* interfaceName,
const char* stroid,
Tobj_Servant servant);
static CORBA::Object_ptr get_object_reference();
static void register_factory(
CORBA::Object_ptr factory_or,
const char* factory_id);
static void unregister_factory(
CORBA::Object_ptr factory_or,
const char* factory_id);
static void deactivateEnable()
static void deactivateEnable(
const char* interfaceName,
const char* stroid,
Tobj_Servant servant);
static CORBA::ORB_ptr orb();
static Tobj_Bootstrap* bootstrap();
static void open_xa_rm();
static void close_xa_rm();
static int userlog(char*, ... );
static char* get_object_id(CORBA::Object_ptr obj);
static void application_responsibility(
Tobj_Servant servant);
};
Parent topic: TP Interface