I'm running JBoss 3.2.1 and I'm trying to use the Quartz scheduler. The Quartz service is deployed as an MBean.
Now, I'm trying to use the Quartz JobInitializationPlugin to read an xml job definition file when it starts up and schedule a job.
In the MBean definition, I have to tell Quartz the file name for the job configuration. The code for Quartz does a file.exists() to check the existence of the file. If it is found, it then does a getResourceAsStream to load the xml file.
My problem is, I can't figure out where to put the configuration file, nor how to reference it in the MBean definition.
I understand that the .exists method is expecting a relative path to the file, and that getResourceAsStream will search the classpath for the resource.
But where does this file need to live to be accessible the above?
Any help is appreciated.
I'm currently doing something very similar with the Quartz scheduling service. How far did you get with your problem? We've put a layer between the scheduler and the MBean, but it sounds similar.
Do you mean the quartz.properties file?