All,
I have a question about EventCollection.
Firstly, I configure the event in Domain.xml:
<event classname="org.apache.slide.event.TransactionEvent" enable="true"/>
<event classname="org.apache.slide.event.ContentEvent" enable="true" />
<listener classname="org.apache.slide.event.VetoableEventCollector" />
<listener classname="MyEventListner" />
Then I write the code is like following:
webdavResource.startTransaction();
webdavResource.putMethod(); // update a file
webdavResource.proppatchMethod(); //set the properties of document
webdavResource.commitTransaction();
I thought after the commitTransaction(), vetoableCollected(EventCollection
collection) should be called. However, this method is not called, but store() method
is called several times. (for putMethod() and proppatchMethod()).
Why? Is the configure in Domain.xml wrong? But I config it according to the javadoc of
slide.
Any suggestion is welcome.
Regards
Huyong
---------------------------------
Do You Yahoo!?
嫌邮箱太小?雅虎电邮自助扩容!