2 * @author Iliyan jeliazkov <iliyan@ociweb.com>
3 * @author Lothar Werzinger <lothar@tradescape.biz>
6 #include "ace/Service_Config.h"
8 #include "ace/OS_NS_unistd.h"
10 ACE_TCHAR
const * const scpc_loadOrb
= // NOTE due to the way ACE_DYNAMIC_SERVICE_DIRECTIVE() macro is defined,
11 // each parameter CANNOT be split into multiple quoted strings "line1" "nextline" with the expectation that
12 // they will be join together. Hence the long parameter 4.
13 ACE_DYNAMIC_VERSIONED_SERVICE_DIRECTIVE ("testDllOrb",
17 "DllOrb -t 1 -ORBGestalt Local -ORBDebugLevel 3 -ORBId testORB -ORBInitRef NameService=file:///tmp/test-ns.ior -ORBDottedDecimalAddresses 1"
20 ACE_TCHAR
const * const scpc_unloadOrb
= ACE_REMOVE_SERVICE_DIRECTIVE ("testDllOrb");
22 int ACE_TMAIN (int, ACE_TCHAR
*[])
24 ACE_DEBUG ((LM_DEBUG
,"\nbefore first load process directive\n"));
25 if (0 > ACE_Service_Config::process_directive (scpc_loadOrb
))
30 ACE_DEBUG ((LM_DEBUG
,"\nbefore first unload process directive\n"));
31 if (0 > ACE_Service_Config::process_directive (scpc_unloadOrb
))
35 ACE_DEBUG ((LM_DEBUG
, "\nMAIN (%P|%t) Lather, Rince, Repeat ...\n"));
37 if (0 > ACE_Service_Config::process_directive (scpc_loadOrb
))
42 if (0 > ACE_Service_Config::process_directive (scpc_unloadOrb
))