1 #include "ace/Service_Config.h"
2 #include "ace/Log_Msg.h"
5 ACE_TMAIN(int, ACE_TCHAR
*[])
7 ACE_TCHAR
const * const scpc_loadOrb
=
8 ACE_DYNAMIC_SERVICE_DIRECTIVE ("testDllORB",
11 "testDllORB -ORBId testORB");
13 ACE_TCHAR
const * const scpc_unloadOrb
=
14 ACE_REMOVE_SERVICE_DIRECTIVE ("testDllORB");
16 // Do not use the default svc.conf file
17 ACE_Service_Config::open (ACE_TEXT ("server"),
18 ACE_DEFAULT_LOGGER_KEY
, 1, 1, 0);
20 ACE_Service_Config::process_directive (scpc_loadOrb
);
21 ACE_DEBUG ((LM_INFO
, ACE_TEXT ("loading ORB (1) done\n")));
23 ACE_DEBUG ((LM_INFO
, ACE_TEXT ("unloading ORB (1) ...\n")));
24 ACE_Service_Config::process_directive (scpc_unloadOrb
);
25 ACE_DEBUG ((LM_INFO
, ACE_TEXT ("unloading ORB (1) done\n")));
27 ACE_Service_Config::process_directive (scpc_loadOrb
);
28 ACE_DEBUG ((LM_INFO
, ACE_TEXT ("loading ORB (2) done\n")));
30 ACE_DEBUG ((LM_INFO
, ACE_TEXT ("unloading ORB (2) ...\n")));
31 ACE_Service_Config::process_directive (scpc_unloadOrb
);
32 ACE_DEBUG ((LM_INFO
, ACE_TEXT ("unloading ORB (2) done\n")));