Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 0.3.3
-
Fix Version/s: 1.0-RC
-
Component/s: None
-
Labels:None
Description
Job bean names are wrong. E.g. the class MyJob leads to a bean named "MyJob" instead of "myJob". This differs from convention and it makes dependency injection by name impossible. For injecting the job into another bean, you would have to define a property like "def MyJob" instead of "def myJob", but this does not work because grails treats this as a class, not a variable name.
So quartz job beans should start with a lowercase character.
When you put a job into a package, the bean name of the job is the full qualified class name.
So if you put Job "MyJob" into a package "com.mypackage", the bean name will be "com.mypackage.MyJob".
It should be "myJob".