Issues with scheduling multiple jobs concurrently using Quartz


General J2EE: Issues with scheduling multiple jobs concurrently using Quartz

  1. Hi, We are facing a problem while processing a text files concurrently using Quartz scheduler. We have used two Schedulers. One scheduler for reading folder names and considered each folder as one job. We are executing these jobs for every 30 secs. Another scheduler is used for reading a file content from each folder and inserted into database. The above scheduler processing the files sequentially. But we need to process concurrently each text files from multiple folders and insert into database. example, Folder1 Text1.txt,Text2.txt,Text3.txt,Text4.txt....... Folder2 Text1.txt,Text2.txt,Text3.txt,Text4.txt....... Folder3 Text1.txt,Text2.txt,Text3.txt,Text4.txt....... From the above example, Folder1, Folder2 and Folder3 executing concurrently but files under each folder are not processing concurrently. We have used Hibernate 3.0 and Sprig 1.2.3 framework in our design and getting some errors 18 Dec 2006 11:18:14 [ERROR] Could not position within a table. 18 Dec 2006 11:18:14 [ERROR] ISAM error: record is locked. 18 Dec 2006 11:18:14 [ERROR] Could not synchronize database state with session org.hibernate.exception.GenericJDBCException: could not update:
  2. Yep. Sounds like you have a bug.