ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/clientinterface/ClientInterfaceMain.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/clientinterface/ClientInterfaceMain.java (file contents):
Revision 1.1 by ajm, Mon Dec 4 18:12:00 2000 UTC vs.
Revision 1.2 by ajm, Mon Dec 4 18:42:19 2000 UTC

# Line 38 | Line 38 | class ClientInterfaceMain {
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) {
# Line 46 | Line 47 | class ClientInterfaceMain {
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" +
# Line 62 | Line 64 | class ClientInterfaceMain {
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines