--- projects/cms/source/server/uk/org/iscream/cms/server/filtermanager/FilterManager.java 2001/01/28 05:38:13 1.15 +++ projects/cms/source/server/uk/org/iscream/cms/server/filtermanager/FilterManager.java 2001/01/28 06:03:58 1.16 @@ -13,7 +13,7 @@ import uk.ac.ukc.iscream.componentmanager.*; * to talk to. * * @author $Author: tdb $ - * @version $Id: FilterManager.java,v 1.15 2001/01/28 05:38:13 tdb Exp $ + * @version $Id: FilterManager.java,v 1.16 2001/01/28 06:03:58 tdb Exp $ */ public class FilterManager implements Component { @@ -22,7 +22,7 @@ public class FilterManager implements Component { /** * The current CVS revision of this class */ - public static final String REVISION = "$Revision: 1.15 $"; + public static final String REVISION = "$Revision: 1.16 $"; /** * The friendly name for this component, used by @@ -45,24 +45,20 @@ public class FilterManager implements Component { // configuration variable we require int listenPort = 0; - + Configuration config = _refman.getCM().getConfiguration("FilterManager"); if (config == null) { - System.err.println("CRITICAL:Unable to obtain configuration" + - "\n Advise you check the i-scream log for more information."); - _logger.write(toString(), Logger.FATAL, "ERROR - unable to obtain configuration"); - System.exit(1); - } else { + throw new ComponentStartException("Unable to obtain configuration for component"); + } + else { try { + // get the configuration properties we need listenPort = Integer.parseInt(config.getProperty("FilterManager.listenPort")); } catch (org.omg.CORBA.MARSHAL e) { - System.err.println ("CRITICAL:Unable to obtain required configuration property" + - "\n Advise you check the i-scream log for more information."); - _logger.write(toString(), Logger.FATAL, "ERROR - required configuration property not present"); - System.exit(1); + throw new ComponentStartException("Unable to obtain requried configuration property for component"); } } - + _logger.write(toString(), Logger.SYSMSG, "configured"); // startup a thread to listen for hosts