1 #include "ace/Service_Config.h"
2 #include "ace/Log_Msg.h"
3 #include "ace/OS_NS_unistd.h"
5 ACE_TCHAR
const * const scpc_loadOrb
= ACE_DYNAMIC_SERVICE_DIRECTIVE(
9 "testDllOrb -ORBDebugLevel 0 -ORBId testDllOrb -ORBDottedDecimalAddresses 1"
12 ACE_TCHAR
const * const scpc_unloadOrb
= ACE_REMOVE_SERVICE_DIRECTIVE("testDllOrb");
15 ACE_TCHAR
const * const scpc_loadPersistentPoa
= ACE_DYNAMIC_SERVICE_DIRECTIVE(
18 "_make_PersistentPoa",
19 "testPersistentPoa testDllOrb"
22 ACE_TCHAR
const * const scpc_unloadPersistentPoa
= ACE_REMOVE_SERVICE_DIRECTIVE("testPersistentPoa");
24 void loadunloadcycle()
30 ACE_TEXT ("(%P|%t) loadunloadcycle - loading\n")
33 result
= ACE_Service_Config::process_directive(scpc_loadOrb
);
36 ACE_TEXT ("(%P|%t) loadunloadcycle - loading ORB done\n")
39 result
= ACE_Service_Config::process_directive(scpc_loadPersistentPoa
);
42 ACE_TEXT ("(%P|%t) loadunloadcycle - loading PersistentPoa done. Result: <%d>\n"),
48 ACE_TEXT ("(%P|%t) loadunloadcycle - unloading\n")
55 ACE_TEXT ("(%P|%t) loadunloadcycle - unloading PersistentPoa ...\n")
57 result
= ACE_Service_Config::process_directive(scpc_unloadPersistentPoa
);
60 ACE_TEXT ("(%P|%t) loadunloadcycle - unloading PersistentPoa done. Result: <%d>\n"),
66 ACE_TEXT ("(%P|%t) loadunloadcycle - unloading ORB ...\n")
68 result
= ACE_Service_Config::process_directive(scpc_unloadOrb
);
71 ACE_TEXT ("(%P|%t) loadunloadcycle - unloading ORB done. Result: <%d>\n"),
76 int ACE_TMAIN(int, ACE_TCHAR
** argv
)
80 result
= ACE_Service_Config::open (
82 ACE_DEFAULT_LOGGER_KEY
,
83 1, // ignore_static_svcs = 1,
84 1, // ignore_default_svc_conf_file = 0,
85 0 // ignore_debug_flag = 0
91 ACE_TEXT ("(%P|%t) main - ACE_Service_Config::open failed\n")
99 ACE_TEXT ("(%P|%t) main - entered\n")
104 ACE_TEXT ("(%P|%t) main - cycle 1 ...\n")
109 ACE_TEXT ("(%P|%t) main - cycle 1 done\n")
114 ACE_TEXT ("(%P|%t) main - cycle 2 ...\n")
119 ACE_TEXT ("(%P|%t) main - cycle 2 done\n")
124 ACE_TEXT ("(%P|%t) main - leaving\n")