Skip to Main Content

Folder's events trigger Agents that are supposed to handle only events from Document

3004Jul 7 2000
I have an agent that will monitor file creation, but somehow when I create a new folder, the agent is also triggered.

Following is the enableEventListening() method which I only register the Document class.

{
Collection c = getSession().getClassObjectCollection();

ClassObject doc = (ClassObject) c.getItems(Document.CLASS_NAME);

getSession().registerClassEventHandler(doc,true, this);
}

Do you know why?

Thanks,
Sam
Comments
Post Details
Added on Jul 7 2000
5 comments
80 views