Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding properties file to xml

 
H. J. Yoshi
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

(i post in ages.)

I have defined an xsd using which i am doing the following -
- listing 'job schedules' [ these are spring batch jobs , defined in their own specific config xmls]
- each 'schedule' has a list of parameters inlcuding: cron string, a few file/ directory paths (relative), the job config xml path.

Now, yes, I could do this using spring framework quartz beans and have the "configLocation" or, spring context "property-placeholder" element set to read the properties file I need to read in order to resolve the filenames/ filepaths listed in each 'job schedule' element.

But, I am not using spring beans here at all. (I do think it is probably is a bad idea, but for some reason, that is how it is going to be)

So, every element is "string" as per this xsd. I am trying to find if there is any way I can import / refer to the properties file within these xml? by changing my own xsd and not using the spring /context/quartz schema.

However, I am using spring to load the context and have the "scheduler" kick off. So, I am able to load the config and jobs using XML files generated using this schema, but the relative paths get unresolved.

Any suggestion, pointer is most welcome.

Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic