1 Reply Latest reply on Dec 1, 2003 9:46 AM by kenevel

    MBean file location question

    ckeeling Newbie


      "ckeeling" wrote:
      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.