Using Quartz is not very difficult. I did it in the following steps
 
 - write a HivemindServiceJobFactory which takes HiveMind-Services
implementing "Job" or "Runnable" and wrap them into an adapter taking care
of calling setupThread and cleanupThread on the registry. The service-id is
taken from the JobDetail's data-map unless there's only one Job configured
as a hivemind service.
 
 - write a ServiceImplementationFactory which retrieves the Scheduler from
the corresp. Quartz factory and replaces the Standard JobFactory with the
above one (attention: needs access to the registry - you'll need to override
tap's application servlet to accomplish that)
 
marcus

Reply via email to