java - Howto setup HSQLDB schema for Quartz scheduler -
i'm writing "simple" scheduler application uses great quartz scheduling framework.
quartz works database systems (mysql, oracle, hsqldb, ...), need specified in quartz.properties config file. database used must initialized corresponding sql init-script, may found in quartz installation's docs/dbtables directory.
using mysql database, had run tables_mysql.sql script on database , fine.
now intend switch in-memory db (hsqldb) running in file mode. starting app seems create hsqldb correctly, don't find easy way run init-script on database.
checking google , stackoverflow found solutions, require either spring-framework, hibernate, flyway or programmatically getting connection , parsing/executing statements in init script.
my question: isn't there easier way set hsqldb quartz? ideally quartz itself, since knows db connection data config file required setup script... missing something?
thanks hints on this!
you can use sqlfile part of sqltool. separate jar, sqltool.jar, in hsqldb zip package.
this can used hsqldb other database engines.
the usage covered in own guide:
Comments
Post a Comment