This is a Quartz Scheduler web application for Elasticsearch. You can use it to schedule your Quartz jobs for Elasticsearch queries.
- PostgreSQL 9.2+
- Tomcat 7+
- quartz-2.2.3+
- Create a role:
quartz
. - Create a database:
quartz
and assign the owner to the rolequartz
. - Download the Quartz tarball and unpack it.
- Run the db script under
docs/dbTables/tables_postgres.sql
.
- Download PostgreSQL JDBC driver and copy it to
${TOMCAT_HOME}/lib/
- Because JNDI is recommended, add the following snippet into
${TOMCAT_HOME}/conf/context.xml
:
<Resource name="jdbc/postgres" auth="Container"
type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://127.0.0.1:5432/quartz"
username="quartz" password="quartz" maxActive="20" maxIdle="10"
maxWait="-1"/>
- Modify
web.xml
: - mvn clean package
- Deploy the war to Tomcat
- Java Quartz Configuration Example
- [Correct way to persist Quartz triggers in database] (http://stackoverflow.com/questions/17402112/correct-way-to-persist-quartz-triggers-in-database)
- Apache Maven War Plugin - Usage
- Tomcat7 使用Scheduler
- Quartz工作排程工具介紹(一)-簡單整合進Tomcat
- Tomcat: The Tomcat JDBC Connection Pool
- Tomcat: JNDI Datasource HOW-TO
- Change eclipse's built in tomcat context.xml file using WTP?
- SLF4J warning or error messages and their meanings
- Setup Quartz Scheduler with MYSQL Database