You probably tried this but I was going to suggest a Custom Resource. http://tomee.apache.org/application-resources.html
On Thu, Dec 19, 2019 at 10:13 PM Ihsan Ecemis <[email protected]> wrote: > > Hello Everyone, > > We would like to store Quartz scheduling information within a relational > database. We tried different configuration options to use our own > properties file instead of TomEE's default, but could not get it to work. > > Here are the things we tried: > > (1) We defined the system property 'org.quartz.properties', e.g. did > "-Dorg.quartz.properties=/tmp/quartz.properties". > (2) Since TomEE shades org.quartz, we also tried > "-Dorg.apache.openejb.quartz.properties=/tmp/quartz.properties". > (3) We also tried configuring this via web.xml file by adding: > > <context-param> > <param-name>quartz:config-file</param-name> > <param-value>/tmp/quartz.properties</param-value> > </context-param> > > > In all these cases, even though we set org.quartz.jobStore.class = > org.quartz.impl.jdbcjobstore.JobStoreTX (or > org.apache.openejb.quartz.jobStore.class = > org.apache.openejb.quartz.impl.jdbcjobstore.JobStoreTX) and adjust all > parameters as documented at Quartz User Guide, TomEE is initializing > RAMJobStore instead of JobStoreTX. Also, there is no indication in the > logs that Quartz is opening our properties file. > > How can we configure Quartz under TomEE? > > Any help would be greatly appreaciated. > > Thanks, > > Ihsan. -- Richard Monson-Haefel https://twitter.com/rmonson https://www.linkedin.com/in/monsonhaefel/
