blob: 735da982dc4818cf5b6064c8a29a7aa0a721968e (
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
|
#include "LB_server.h"
#include "Factory.h"
#include "Simple.h"
ACE_RCSID (Infrastructure_Controlled,
server,
"$Id$")
int
main (int argc, char *argv[])
{
const char *location1 = "MyLocation 1";
const char *location2 = "MyLocation 2";
LB_server lb_server (argc, argv);
if (lb_server.start_orb_and_poa () == -1)
return 1;
if (lb_server.create_object_group (location1, location2) == -1)
return 1;
lb_server.run ();
ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
if (lb_server.destroy () == -1)
return 1;
return 0;
}
|