blob: c46d30c0406c553218f6b3f58511a0f0abd5e193 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// $Id$
# include "Collocation_Tester.h"
ACE_RCSID (tests, client, "$Id$")
int main (int argc, char *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// ORB Initialization
CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "TAO" ACE_ENV_ARG_PARAMETER);
CORBA::Object_var object;
// Get The IOR from a file
object = orb->string_to_object ("file://s.ior" ACE_ENV_ARG_PARAMETER);
if (CORBA::is_nil (object.in ()))
{
ACE_DEBUG ((LM_DEBUG, "Invalid IOR file\n"));
return 1;
}
Collocation_Tester tester (object.in ());
tester.run ();
}
ACE_CATCHANY
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "CORBA Exception Raised");
return 1;
}
ACE_ENDTRY;
return 0;
}
|