Bug 1121053

Summary: Custom quartz.properties file for SwitchYard Quartz binding is not loaded
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Tadayoshi Sato <tasato>
Component: SwitchYardAssignee: Rob Cernich <rcernich>
Status: MODIFIED --- QA Contact: Matej Melko <mmelko>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0 GACC: ganandan, soa-p-jira
Target Milestone: DR5   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tadayoshi Sato 2014-07-18 09:29:46 UTC
Description of problem:

Platform BZ for https://issues.jboss.org/browse/SWITCHYARD-1970

Currently you can't supply custom quartz.properties for scheduler binding. The default quartz.properties in quartz-1.8.5.jar is loaded even if you provide your custom properties in your sy module as a resource on org/quartz/quartz.properties path.

Version-Release number of selected component (if applicable):
SY: 1.1.1-p5-redhat-1
camel-quartz: 2.10.0.redhat-60024
quartz: 1.8.5

How reproducible:
Always

Steps to Reproduce:
1. Pick up the 'camel-quartz-binding' quickstart.
2. Add src/main/resources/org/quartz/quartz.properties with "org.quartz.threadPool.threadCount = 1" to the quickstart.
3. Package and deploy it to FSW 6.0.0.

Actual results:
10 threads spawn:
18:25:06,014 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-2) 1. Service executed.
18:25:07,011 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-3) 2. Service executed.
18:25:08,007 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-4) 3. Service executed.
18:25:09,007 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-5) 4. Service executed.
18:25:10,007 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-6) 5. Service executed.
18:25:11,006 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-7) 6. Service executed.
18:25:12,006 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-8) 7. Service executed.
18:25:13,007 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-9) 8. Service executed.
18:25:14,004 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-10) 9. Service executed.
18:25:15,006 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-1) 10. Service executed.


Expected results:
Only 1 thread spawn:
18:25:06,014 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-1) 1. Service executed.
18:25:07,011 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-1) 2. Service executed.
18:25:08,007 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-1) 3. Service executed.
18:25:09,007 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-1) 4. Service executed.
18:25:10,007 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-1) 5. Service executed.
18:25:11,006 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-1) 6. Service executed.
18:25:12,006 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-1) 7. Service executed.
18:25:13,007 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-1) 8. Service executed.
18:25:14,004 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-1) 9. Service executed.
18:25:15,006 INFO  [stdout] (DefaultQuartzScheduler-camel-1_Worker-1) 10. Service executed.

Comment 1 Keith Babo 2014-09-22 11:33:11 UTC
Some info on root cause here:
https://developer.jboss.org/message/857694?et=watches.email.thread#857694

Comment 2 Tadayoshi Sato 2014-12-15 05:35:08 UTC
Sent PR to this bug. Please review it.
https://github.com/jboss-switchyard/components/pull/752