3 //=============================================================================
5 * @file Test_Server_Module.h
7 * @author Ossama Othman <ossama@uci.edu>
9 //=============================================================================
11 #ifndef TEST_SERVER_MODULE_H
12 #define TEST_SERVER_MODULE_H
14 #include /**/ "ace/pre.h"
16 #include "Test_Server_Module_Export.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
27 * @class Test_Server_Module
29 * @brief The shared object that is instantiated when the server-side
30 * test module/library is dynamically loaded.
32 * This class handles all of the server-side ORB tasks, such as
33 * activating the test CORBA object, and running the ORB.
36 class Test_Server_Module_Export Test_Server_Module
: public ACE_Task_Base
39 /// Initializes object when dynamic linking occurs.
40 virtual int init (int argc
, ACE_TCHAR
*argv
[]);
42 /// Terminates object when dynamic unlinking occurs.
45 /// Run by a daemon thread to handle deferred processing.
48 virtual ~Test_Server_Module ();
51 /// Reference to the ORB.
54 /// Reference to the POA.
55 PortableServer::POA_var poa_
;
57 /// Reference to the POA Manager.
58 PortableServer::POAManager_var poa_manager_
;
60 /// The servant that implements the "Test" object.
64 ACE_FACTORY_DECLARE (Test_Server_Module
, Test_Server_Module
)
66 #include /**/ "ace/post.h"
68 #endif /* TEST_SERVER_MODULE_H */