[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Messages posted by: sonamzam  XML
Profile for sonamzam -> Messages posted by sonamzam [8]
Author Message
Sorry one correction.
It returns null at the line specified above.

Hi
in my quartz.properties I have added 2 xml file entries (job_from_jar.xml, job_local.xml) for org.quartz.plugin.jobInitializer.fileNames. Out of which job_from_jar.xml is in jar.
job_from_jar.xml is not being read and throwing file not found exception at following line in org.quartz.plugins.xml.JobInitializationPlugin.

Code:
URL url = classLoadHelper.getResource(getFileName());




Although when job_from_jar.xml is moved in (i.e in direct class path) everything seems to be working fine. It reads and executes the Job class (which is still in the jar) without giving any error.


I am using Quartz 1.6.6
I think its a bug in quartz API. Please help

thanks

In JobInitializationPlugin.java

Line 444 initialize() modified, classLoadHelper.getResource(getFileName()) replaced with getClass().getResource(getFileName())

This worked for me. But not sure if its the right way. Please suggest!!
Hi

I am getting an issue if in above scenario, job1.xml is in a jar file.
Its not able to read the job1.xml and throws SchedulerException saying
File named job1.xml does not exist.
Please suggest for the same.
Thank you very much for your insights.
Upgraded to the latest version of Quartz already.

Solution found.
Quartz API use simple java.util.HashMap to store the JobFiles.
Changing that to java.util.LinkedHashMap solved the issue.
thanks anyways
Hi,

I have set my quartz.properties with following configurations.
Code:
 org.quartz.plugin.jobInitializer.fileName = jobs1.xml,jobs2.xml
 org.quartz.plugin.jobInitializer.overWriteExistingJobs = true
 

But the jobs are not scheduled in the same order as I have specified the files.
i.e sometimes jobs2.xml is read before reading job1.xml.

Then whats the significance of the property 'overWriteExistingJobs' ?

If i want that the jobs in job1.xml to get overwritten if job2.xml has the same entry.
In other words, how can I enforce that file2 should always have higher precedence than file1? And if file2 contains same job as file1 then the jobs from file2 should overwrite file1 jobs.

please suggest.
thanks.
Hi
I am using apache-tomcat-6.0.10
I have 2 contexts running in my tomcat.
Both the applications need to use Quartz (1.5.1) for scheduling activities.
So when I start my tomcat, I have 2 schedulers running at the same time.

My questions are :

1)How can I optimize the usage of Quartz in this scenario?
2)Will having 2 instances of org.quartz.Scheduler produce any issues?
 
Profile for sonamzam -> Messages posted by sonamzam [8]
Go to:   
Powered by JForum 2.1.7 © JForum Team