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

Comparing projects/cms/source/server/uk/org/iscream/cms/server/client/AlerterManager.java (file contents):
Revision 1.3 by tdb, Wed Mar 14 23:25:29 2001 UTC vs.
Revision 1.4 by tdb, Thu Mar 15 22:12:22 2001 UTC

# Line 46 | Line 46 | class AlerterManager extends Thread {
46          _logger.write(toString(), Logger.SYSINIT, "Initialising");
47          _logger.write(toString(), Logger.SYSMSG, "Creating alerter pipeline for plugin alerters ...");
48          
49 +        // get the config proxy
50 +        ConfigurationProxy cp = ConfigurationProxy.getInstance();
51 +        
52          // get the configuration for this plug-in setup
53 <        Configuration config = _refman.getCM().getConfiguration(_name);
54 <        String pluginsPackage = config.getProperty("Alerter.PluginsPackage");
55 <        String pluginsList = config.getProperty("Alerter.Plugins");
53 >        String pluginsPackage, pluginsList;
54 >        try {
55 >            pluginsPackage = cp.getProperty(_name, "Alerter.PluginsPackage");
56 >            pluginsList = cp.getProperty(_name, "Alerter.Plugins");
57 >        } catch(PropertyNotFoundException e) {
58 >            _logger.write(toString(), Logger.WARNING, "Unable to get required configuration, Alerter's will not be activated: "+e);
59 >            // setting these will ensure we don't build a pipeline
60 >            pluginsPackage = "";
61 >            pluginsList = "";
62 >        }
63          
64          StringTokenizer st = new StringTokenizer(pluginsList, ";");
65          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines