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.11 by tdb, Tue Jan 23 16:56:31 2001 UTC vs.
Revision 1.14 by tdb, Sun Jan 28 05:57:29 2001 UTC

# Line 44 | Line 44 | public class ClientInterfaceMain implements Component
44          
45          Configuration config = _refman.getCM().getConfiguration("ClientInterface");
46          if (config == null) {
47 <            System.err.println("CRITICAL:Unable to obtain configuration" +
48 <                               "\n         Advise you check the i-scream log for more information.");
49 <            _logger.write(toString(), Logger.FATAL, "ERROR - unable to obtain configuration");
50 <            System.exit(1);
51 <        } else {
47 >            thrown new ComponentStartException("Unable to obtain configuration for component");
48 >        }
49 >        else {
50              try {
51 +                // get the configuration properties we need
52                  ourName = config.getProperty("RootFilter.realtimeInterfaceName");
53                  listenPort = Integer.parseInt(config.getProperty("ClientInterface.listenPort"));
54              } catch (org.omg.CORBA.MARSHAL e) {
55 <                System.err.println ("CRITICAL:Unable to obtain required configuration property" +
57 <                                    "\n         Advise you check the i-scream log for more information.");
58 <                _logger.write(toString(), Logger.FATAL, "ERROR - required configuration property not present");
59 <                System.exit(1);
60 <
55 >                thrown new ComponentStartException("Unable to obtain requried configuration property for component");
56              }
57          }
58 +        
59          // now we have the name of the interface we set it
60          NAME = ourName;
61          
# Line 67 | Line 63 | public class ClientInterfaceMain implements Component
63          
64          // Setup a PacketSorter
65          PacketSorter ps = new PacketSorter();
66 +        ps.start();
67          
68          // ClientInterfaceServant start (for inbound data)
69          _logger.write(toString(), Logger.DEBUG, "starting servant for inbound data");
70          ClientInterfaceServant ciServant = new ClientInterfaceServant(ps);
71          _refman.bindToOrb(ciServant, "iscream.ClientInterface." + ClientInterfaceMain.NAME);
72          
73 +        // Startup the TCPListener
74          TCPClientListener tcpClientListener = new TCPClientListener(listenPort, ps);
75          tcpClientListener.start();
76          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines