views:

232

answers:

2

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

A: 

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.

skaffman
A: 

Try with /quartz.properties instead of /WEB-INF/classes/quartz.properties.

Damien B