38 |
|
|
39 |
|
// configuration variables we require |
40 |
|
String ourName = null; |
41 |
+ |
int listenPort = 0; |
42 |
|
|
43 |
|
Configuration config = refman.getCM().getConfiguration("ClientInterface"); |
44 |
|
if (config == null) { |
47 |
|
} else { |
48 |
|
try { |
49 |
|
ourName = config.getProperty("RootFilter.realtimeInterfaceName"); |
50 |
+ |
listenPort = Integer.parseInt(config.getProperty("ClientInterface.listenPort")); |
51 |
|
} catch (org.omg.CORBA.MARSHAL e) { |
52 |
|
refman.getLogger().write(toString, Logger.FATAL, "required config property not present"); |
53 |
|
throw new RuntimeException ("CRITICAL:Unable to obtain required configuration property" + |
64 |
|
refman.getLogger().write(toString, Logger.DEBUG, "starting servant for inbound data"); |
65 |
|
ClientInterfaceServant ciServant = new ClientInterfaceServant(); |
66 |
|
refman.bindToOrb(ciServant, "iscream.ClientInterface." + refman.getName()); |
67 |
+ |
|
68 |
+ |
ClientListener clientListener = new ClientListener(listenPort, ciServant); |
69 |
+ |
clientListener.start(); |
70 |
|
|
71 |
|
// start the POA off |
72 |
|
// now we are running, we just need to serve |