From: avalanche <yri...@av...> - 2010-02-11 20:57:31
|
I found a solution as i jumped in bed yesterday. I made a job-agent.xq which is respponsible to submit jobs as a <job> node with date attribute in a jobs.xml file. The xq trigger will trigger on all events and search in the jobs.xml file for any unprocessed jobs and will delete the job enrty upon completion. avalanche wrote: > > I have a generic "content-routing" save.xq script. i want to whenever data > is saved to the eXist db though this script to generate a new report. The > report is generated via a xslt transform. The report takes too long to > generate and therefore would like to do it async to the save.xq request. > How to best implement this? I thought of a xquery trigger but how do i > pass a date param to the trigger? I need to generate a report for specific > days. or is there a way to launch an async thread somehow. Thank you for > your time. > -- View this message in context: http://old.nabble.com/launch-async-thread-or-trigger-for-running-async-report-gen-%28xslt%29-tp27519489p27554625.html Sent from the exist-open mailing list archive at Nabble.com. |