Hi, I succeeded to add a scheduler using org.nuxeo.ecm.core.scheduler.SchedulerService but the added configuration are lost after nuxeo restarting. So i need to know how to dynamically configure the scheduler service and persist that configuration ? Thanks.
Hi, finally I made the following tip:
- Create a scheduler with the class SchedulerServiceImpl.java (this scheduler will be active when it is created and will be lost if NUXEO_SERVER restarts)
- Save the scheduler in an xml file (extension point) in “nxserver/config” (this scheduler will be active the next time you start NUXEO_SERVER).
In Nuxeo schedulers are defined by XML configuration, so what you're asking for is not possible without code changes.
TestSchedulerServiceis a unit test for the
SchedulerServiceImplservice implementation class. This is the low-level code that would have to be changed to be able to persist (in some way to be defined) configurations added at runtime. Note that this persistence would need to be cluster-safe.