Hi,

On 24/06/13 09:21, Richard Jones wrote:
> I'm trying to write an event consumer which attempts to determine if
> an item should be withdrawn from the archive on install.  I have a
> consumer which binds to Item+Install, which carries out a test on the
> item and then calls item.withdraw() if necessary.  item.withdraw()
> triggers a MODIFY event on the item, which is appended to the list of
> events attached to the context, resulting in a
> ConcurrentModificationException in the BasicDispatcher.  Is there a
> way around this?

My workaround for this type of situation is to queue a curation task
from the event consumer and make the change in the curation task. I use
a special queue that gets worked off every couple minutes since in my
case, a 2-minute delay isn't a big issue. I haven't managed to find a
better way to do this (I'm still on 1.8.2 as well).

cheers,
Andrea

-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to