Susmitha Pandi Susmitha Pandi - 2 months ago 23
Java Question

Quartz.properties

I developed an EAR using Quartz API. I have put my quartz.properties file in the classpath

(WEB-INF/classes
in war). Added following lines to
web.xml
file

<context-param>
<param-name>config-file</param-name>
<param-value>/WEB-INF/classes/quartz.properties</param-value>
</context-param>


But Quartz still loads the default properties file from the
quartz.jar

Answer

I believe that config-file should be a servlet parameter, not a context parameter, like the example given at http://www.openscope.net/2010/02/05/quartz-scheduled-jobs/. See also quartz docs on QuartzInitializationServlet here.