Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Bug_2677_Regression / server.cpp
blob5d1d275fcf1491fa43b1cce4eb6defe2df1b63f3
1 #include "ace/Service_Config.h"
2 #include "ace/Log_Msg.h"
4 int
5 ACE_TMAIN(int, ACE_TCHAR *[])
7 ACE_TCHAR const * const scpc_loadOrb =
8 ACE_DYNAMIC_SERVICE_DIRECTIVE ("testDllORB",
9 "Bug_2677_Regression",
10 "_make_DllORB",
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")));
34 return 0;