Can someone enlighten me... the ActiveMonitor does not report any file
changes hear as he is supposed to... I just don't get the events :(

  public class .... extends AbstractLoggable implements
        PropertyChangeListener {

        .....


        File f = new File("D:\\test.txt");

        resource = new FileResource(f);

        .....

        resource.addPropertyChangeListener(this);

        ComponentSelector selector = null;
        Monitor monitor = null;

        try {
          selector = (ComponentSelector) manager.lookup(Monitor.ROLE + "Selector");
          monitor = (Monitor) selector.select("active");


          monitor.addResource(resource);


          if (monitor.getResource(resource.getResourceKey()) != null) {
            getLogger().debug("successfully monitoring");
          }
          else {
            getLogger().debug("not monitoring");
          }
        }
        catch(ComponentException e) {
          getLogger().error("cannot monitor resource",e);
        }
        finally {
          manager.release(monitor);
          manager.release(selector);
        }

        .....

All messsage look fine... Unfortuntaly the Monitor does not log much (I
think he should - at least in debug) All I get on startup is:

  Active monitor will sample all resources every 1000 milliseconds with a
  thread priority of 5(Minimum = 1, Normal = 5, Maximum = 10).

Any idea what I have missed? I am using excalibur from 20020402
(that comes with cocoon HEAD)

Any comments appreciated...
--
Torsten


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to