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

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filtermanager/FilterManager.java (file contents):
Revision 1.15 by tdb, Sun Jan 28 05:38:13 2001 UTC vs.
Revision 1.16 by tdb, Sun Jan 28 06:03:58 2001 UTC

# Line 45 | Line 45 | public class FilterManager implements Component {
45          
46          // configuration variable we require
47          int listenPort = 0;
48 <
48 >        
49          Configuration config = _refman.getCM().getConfiguration("FilterManager");
50          if (config == null) {
51 <            System.err.println("CRITICAL:Unable to obtain configuration" +
52 <                               "\n         Advise you check the i-scream log for more information.");
53 <            _logger.write(toString(), Logger.FATAL, "ERROR - unable to obtain configuration");
54 <            System.exit(1);
55 <        } else {
51 >            throw new ComponentStartException("Unable to obtain configuration for component");
52 >        }
53 >        else {
54              try {
55 +                // get the configuration properties we need
56                  listenPort = Integer.parseInt(config.getProperty("FilterManager.listenPort"));
57              } catch (org.omg.CORBA.MARSHAL e) {
58 <                System.err.println ("CRITICAL:Unable to obtain required configuration property" +
60 <                                    "\n         Advise you check the i-scream log for more information.");
61 <                _logger.write(toString(), Logger.FATAL, "ERROR - required configuration property not present");
62 <                System.exit(1);
58 >                throw new ComponentStartException("Unable to obtain requried configuration property for component");
59              }
60          }
61 <        
61 >                
62          _logger.write(toString(), Logger.SYSMSG, "configured");
63          
64          // startup a thread to listen for hosts

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines