--- projects/cms/source/server/uk/org/iscream/cms/server/clientinterface/ClientInterfaceMain.java 2000/12/04 18:12:00 1.1 +++ projects/cms/source/server/uk/org/iscream/cms/server/clientinterface/ClientInterfaceMain.java 2000/12/04 18:42:19 1.2 @@ -9,7 +9,7 @@ import uk.ac.ukc.iscream.core.*; * A ClientInterface startup class * * @author $Author: ajm $ - * @version $Id: ClientInterfaceMain.java,v 1.1 2000/12/04 18:12:00 ajm Exp $ + * @version $Id: ClientInterfaceMain.java,v 1.2 2000/12/04 18:42:19 ajm Exp $ */ class ClientInterfaceMain { @@ -18,7 +18,7 @@ class ClientInterfaceMain { /** * The current CVS revision of this class */ - public static final String REVISION = "$Revision: 1.1 $"; + public static final String REVISION = "$Revision: 1.2 $"; //---STATIC METHODS--- @@ -38,6 +38,7 @@ class ClientInterfaceMain { // configuration variables we require String ourName = null; + int listenPort = 0; Configuration config = refman.getCM().getConfiguration("ClientInterface"); if (config == null) { @@ -46,6 +47,7 @@ class ClientInterfaceMain { } else { try { ourName = config.getProperty("RootFilter.realtimeInterfaceName"); + listenPort = Integer.parseInt(config.getProperty("ClientInterface.listenPort")); } catch (org.omg.CORBA.MARSHAL e) { refman.getLogger().write(toString, Logger.FATAL, "required config property not present"); throw new RuntimeException ("CRITICAL:Unable to obtain required configuration property" + @@ -62,6 +64,9 @@ class ClientInterfaceMain { refman.getLogger().write(toString, Logger.DEBUG, "starting servant for inbound data"); ClientInterfaceServant ciServant = new ClientInterfaceServant(); refman.bindToOrb(ciServant, "iscream.ClientInterface." + refman.getName()); + + ClientListener clientListener = new ClientListener(listenPort, ciServant); + clientListener.start(); // start the POA off // now we are running, we just need to serve