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
40 /// Initializes object when dynamic linking occurs.
41 virtual int init (int argc
, ACE_TCHAR
*argv
[]);
43 /// Terminates object when dynamic unlinking occurs.
44 virtual int fini (void);
46 /// Run by a daemon thread to handle deferred processing.
47 virtual int svc (void);
49 virtual ~Test_Server_Module (void);
53 /// Reference to the ORB.
56 /// Reference to the POA.
57 PortableServer::POA_var poa_
;
59 /// Reference to the POA Manager.
60 PortableServer::POAManager_var poa_manager_
;
62 /// The servant that implements the "Test" object.
67 ACE_FACTORY_DECLARE (Test_Server_Module
, Test_Server_Module
)
69 #include /**/ "ace/post.h"
71 #endif /* TEST_SERVER_MODULE_H */