Scheduler
From Plex-XML
PlexXML has an integrated Scheduler-Servlet that could be used to run requests/jobs periodically.
Contents |
Configuration
1. Define the SchedulerServlet
The de.bodow.web.SchedulerServlet must be defined in the web.xml.
<servlet> <servlet-name>Scheduler</servlet-name> <servlet-class>de.bodow.web.SchedulerServlet</servlet-class> <init-param> <param-name>de.bodow.web.jobconfig</param-name> <param-value>/WEB-INF/request-config-job.xml</param-value> </init-param> <init-param> <param-name>de.bodow.web.config</param-name> <param-value>/WEB-INF/request-config.xml</param-value> </init-param> <init-param> <param-name>de.bodow.helper.XMLUtils.cacheTemplates</param-name> <param-value>true</param-value> </init-param> <load-on-startup>5</load-on-startup> </servlet>
2. Define your job requests
The definition of your scheduled jobs should be located in a separate request-config-job.xml.
See Job-Requests for a detailed description.
3. Deply your application
if you have defined everything correct the scheduler is startet every time you deploy your application.
You can check your scheduled jobs with the sysinfo request:
http://127.0.0.1:8080/tutorial/aServlet?request=sysinfo
