3 #include "ace/Dynamic_Service.h"
6 const ACE_TCHAR argStrB
[] = ACE_TEXT("BBB -ORBGestalt LOCAL -ORBId ORB-B -ORBSvcConf b.conf");
9 const ACE_TCHAR argStrM
[] = ACE_TEXT("MMM -ORBGestalt LOCAL -ORBId ORB-M -ORBSvcConf m.conf");
12 ACE_TMAIN (int, ACE_TCHAR
**)
18 ACE_ARGV
argM (argStrM
);
21 CORBA::ORB_init (n
, argM
.argv ());
23 if (CORBA::is_nil (ORBM
.in ()))
24 ACE_ERROR_RETURN ((LM_DEBUG
,
25 ACE_TEXT("Expected to get an ORB\n")),
29 ACE_ARGV
argB (argStrB
);
32 CORBA::ORB_init (n
, argB
.argv ());
34 if (CORBA::is_nil (ORBB
.in ()))
35 ACE_ERROR_RETURN ((LM_DEBUG
,
36 ACE_TEXT("Expected to get an ORB\n")),
39 // Since each svc conf file causes the ORB to load the services in
40 // its own service space no services are reachable through the
41 // global service repo
44 ACE_Service_Object
*ssliop_so
=
45 ACE_Dynamic_Service
<ACE_Service_Object
>::instance ("SSLIOP_Factory");
50 ACE_TEXT("Unexpected to find ")
51 ACE_TEXT("SSLIOP_Factory globally\n")));
58 catch(const CORBA::Exception
& ex
)
60 ex
._tao_print_exception ("Unhandled exception caught");